microRTPS: Fix C++11 remnant

This commit is contained in:
Tal Zaitsev
2020-01-21 23:45:09 -05:00
committed by Daniel Agar
parent b47eaa6061
commit 65aaf5170c
@@ -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")