Skip to content

Commit

Permalink
enable c++11 support for MSVC>2010 (although that's still what's used…
Browse files Browse the repository at this point in the history
… for the packages)
  • Loading branch information
jef-n committed Jun 5, 2015
1 parent e330265 commit ee9d9ee
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions CMakeLists.txt
Expand Up @@ -364,6 +364,8 @@ ELSEIF ("${CMAKE_CXX_COMPILER_ID}" MATCHES "Clang")
SET(USE_CXX_11 TRUE)
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -Wno-error=c++11-narrowing")
ENDIF()
ELSEIF (MSVC AND MSVC_VERSION GREATER 1600)
SET(USE_CXX_11 TRUE)
ELSE()
SET(USE_CXX_11 FALSE)
ENDIF()
Expand Down

0 comments on commit ee9d9ee

Please sign in to comment.