Skip to content

Commit b573676

Browse files
committed
Update CMakeLists.txt
Enable c++11 support manually by using the compiler flags.
1 parent c53903f commit b573676

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

CMakeLists.txt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,10 +70,12 @@ if((CMAKE_COMPILER_IS_GNUCC OR CMAKE_COMPILER_IS_GNUCXX) AND NOT CMAKE_COMPILER_
7070
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fPIC")
7171
endif()
7272
# hide all not-exported symbols
73-
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fvisibility=hidden -Wall" )
73+
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fvisibility=hidden -Wall -std=c++0x" )
7474
elseif(MSVC)
7575
# enable multi-core compilation with MSVC
7676
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" )
7779
endif()
7880

7981
INCLUDE (FindPkgConfig)

0 commit comments

Comments
 (0)