Enable c++11 standard everywhere

This commit is contained in:
Julien Schueller
2020-07-09 14:00:23 +02:00
committed by Wenzel Jakob
parent 100e489fe3
commit 860f9dda96
+2 -5
View File
@@ -125,14 +125,11 @@ if (CMAKE_CXX_COMPILER_ID MATCHES "Clang")
endif()
endif()
set (CMAKE_CXX_STANDARD 11)
if (UNIX)
add_definitions (-DUSE_PTHREAD)
check_cxx_compiler_flag ("-std=c++11" SUPPORTS_STDCXX11)
if (SUPPORTS_STDCXX11)
set (CMAKE_CXX_FLAGS "-std=c++11 ${CMAKE_CXX_FLAGS}")
endif ()
check_cxx_compiler_flag ("-mrtm -Werror" SUPPORTS_MRTM)
if (SUPPORTS_MRTM)
set (CMAKE_CXX_FLAGS "-mrtm ${CMAKE_CXX_FLAGS}")