mirror of
https://github.com/wjakob/tbb.git
synced 2026-08-29 08:34:40 +08:00
Enable c++11 standard everywhere
This commit is contained in:
committed by
Wenzel Jakob
parent
100e489fe3
commit
860f9dda96
+2
-5
@@ -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}")
|
||||
|
||||
Reference in New Issue
Block a user