Skip to content

Commit ee9d9ee

Browse files
committedJun 5, 2015
enable c++11 support for MSVC>2010 (although that's still what's used for the packages)
1 parent e330265 commit ee9d9ee

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed
 

‎CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -364,6 +364,8 @@ ELSEIF ("${CMAKE_CXX_COMPILER_ID}" MATCHES "Clang")
364364
SET(USE_CXX_11 TRUE)
365365
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -Wno-error=c++11-narrowing")
366366
ENDIF()
367+
ELSEIF (MSVC AND MSVC_VERSION GREATER 1600)
368+
SET(USE_CXX_11 TRUE)
367369
ELSE()
368370
SET(USE_CXX_11 FALSE)
369371
ENDIF()

0 commit comments

Comments
 (0)
Please sign in to comment.