File tree Expand file tree Collapse file tree 2 files changed +8
-5
lines changed
Expand file tree Collapse file tree 2 files changed +8
-5
lines changed Original file line number Diff line number Diff line change 3333
3434# GCC
3535if (CMAKE_COMPILER_IS_GNUCXX)
36- add_definitions (-std=c++11 - W -Wall -Wextra -Wpedantic)
36+ add_definitions (-W -Wall -Wextra -Wpedantic)
3737 if (FCL_TREAT_WARNINGS_AS_ERRORS)
3838 add_definitions (-Werror)
3939 endif ()
4040endif ()
4141
4242# Clang
4343if (CMAKE_CXX_COMPILER_ID STREQUAL "Clang" )
44- add_definitions (-std=c++11 - W -Wall -Wextra)
44+ add_definitions (-W -Wall -Wextra)
4545 if (FCL_TREAT_WARNINGS_AS_ERRORS)
4646 add_definitions (-Werror)
4747 endif ()
@@ -53,7 +53,7 @@ if(CMAKE_CXX_COMPILER_ID STREQUAL "AppleClang")
5353 if (CMAKE_CXX_COMPILER_VERSION VERSION_LESS 6.1)
5454 message (FATAL_ERROR "AppleClang version must be at least 6.1!" )
5555 endif ()
56- add_definitions (-std=c++11 - W -Wall -Wextra)
56+ add_definitions (-W -Wall -Wextra)
5757 if (FCL_TREAT_WARNINGS_AS_ERRORS)
5858 add_definitions (-Werror)
5959 endif ()
7777 set (IS_ICPC 0)
7878endif ()
7979if (IS_ICPC)
80- add_definitions (-std=c++11 - wd191 -wd411 -wd654 -wd1125 -wd1292 -wd1565 -wd1628 -wd2196)
80+ add_definitions (-wd191 -wd411 -wd654 -wd1125 -wd1292 -wd1565 -wd1628 -wd2196)
8181 set (CMAKE_AR "xiar" CACHE STRING "Intel archiver" FORCE)
8282 set (CMAKE_CXX_FLAGS "-pthread" CACHE STRING "Default compile flags" FORCE)
8383 set (CMAKE_CXX_FLAGS_RELEASE "-O3 -DNDEBUG"
9797 set (IS_XLC 0)
9898endif ()
9999if (IS_XLC)
100- add_definitions (-std=c++11 - qpic -q64 -qmaxmem=-1)
100+ add_definitions (-qpic -q64 -qmaxmem=-1)
101101 set (CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -q64" )
102102 set (CMAKE_MODULE_LINKER_FLAGS "${CMAKE_MODULE_LINKER_FLAGS} -q64" )
103103endif ()
Original file line number Diff line number Diff line change @@ -50,6 +50,9 @@ endif()
5050# Be sure to pass to the consumer the set of SIMD used in the compilation
5151target_compile_options (${PROJECT_NAME} PUBLIC ${SSE_FLAGS} )
5252
53+ # At least C++11 is required
54+ target_compile_features (${PROJECT_NAME} PUBLIC cxx_std_11)
55+
5356set_target_properties (${PROJECT_NAME} PROPERTIES
5457 VERSION ${FCL_VERSION}
5558 SOVERSION ${FCL_ABI_VERSION} )
You can’t perform that action at this time.
0 commit comments