Skip to content
Permalink
Browse files

enable c++11 support for MSVC>2010 (although that's still what's used…

… for the packages)
  • Loading branch information
jef-n committed Jun 5, 2015
1 parent e330265 commit ee9d9eea4065f337559adff7dd8c63160dfeccd7
Showing with 2 additions and 0 deletions.
  1. +2 −0 CMakeLists.txt
@@ -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()

0 comments on commit ee9d9ee

Please sign in to comment.
You can’t perform that action at this time.