We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c53903f commit b573676Copy full SHA for b573676
CMakeLists.txt
@@ -70,10 +70,12 @@ if((CMAKE_COMPILER_IS_GNUCC OR CMAKE_COMPILER_IS_GNUCXX) AND NOT CMAKE_COMPILER_
70
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fPIC")
71
endif()
72
# hide all not-exported symbols
73
- set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fvisibility=hidden -Wall" )
+ set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fvisibility=hidden -Wall -std=c++0x" )
74
elseif(MSVC)
75
# enable multi-core compilation with MSVC
76
add_compile_options(/MP)
77
+elseif ( "${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang" )
78
+ set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fvisibility=hidden -Wall -Wno-long-long -pedantic -std=c++11" )
79
80
81
INCLUDE (FindPkgConfig)
0 commit comments