mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-05-28 19:32:36 +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
|
if(CMAKE_COMPILER_IS_GNUCXX OR CMAKE_COMPILER_IS_CLANG OR
|
||||||
CMAKE_CXX_COMPILER_ID MATCHES "Clang")
|
CMAKE_CXX_COMPILER_ID MATCHES "Clang")
|
||||||
check_cxx_compiler_flag(--std=c++14 SUPPORTS_CXX14)
|
check_cxx_compiler_flag(--std=c++14 SUPPORTS_CXX14)
|
||||||
if(SUPPORTS_CXX11)
|
if(SUPPORTS_CXX14)
|
||||||
add_compile_options(--std=c++14)
|
add_compile_options(--std=c++14)
|
||||||
else()
|
else()
|
||||||
message(FATAL_ERROR "Compiler doesn't support C++14")
|
message(FATAL_ERROR "Compiler doesn't support C++14")
|
||||||
|
|||||||
Reference in New Issue
Block a user