mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-05-23 15:17:35 +08:00
microRTPS: Fix C++11 remnant
This commit is contained in:
@@ -43,7 +43,7 @@ include(CheckCXXCompilerFlag)
|
||||
if(CMAKE_COMPILER_IS_GNUCXX OR CMAKE_COMPILER_IS_CLANG OR
|
||||
CMAKE_CXX_COMPILER_ID MATCHES "Clang")
|
||||
check_cxx_compiler_flag(--std=c++14 SUPPORTS_CXX14)
|
||||
if(SUPPORTS_CXX11)
|
||||
if(SUPPORTS_CXX14)
|
||||
add_compile_options(--std=c++14)
|
||||
else()
|
||||
message(FATAL_ERROR "Compiler doesn't support C++14")
|
||||
|
||||
Reference in New Issue
Block a user