Commit ab3b079f authored by Jan Möbius's avatar Jan Möbius

Fix for ...

git-svn-id: http://www.openvolumemesh.org/svnrepo/OpenVolumeMesh/trunk@271 66977474-1d4b-4f09-8fe9-267525286df2
parent 51e9c14e
......@@ -160,13 +160,13 @@ if (UNIX)
CHECK_CXX_COMPILER_FLAG("-std=c++0x" COMPILER_SUPPORTS_CXX0X)
if(COMPILER_SUPPORTS_CXX11)
list(APPEND ADDITIONAL_CXX_DEBUG_FLAGS "-std=c++11" )
list(APPEND ADDITIONAL_CXX_RELEASE_FLAGS "-std=c++11" )
list(APPEND ADDITIONAL_CXX_RELWITHDEBINFO_FLAGS "-std=c++11" )
set( CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -std=c++11")
set( CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_DEBUG} -std=c++11")
set( CMAKE_CXX_FLAGS_RELWITHDEBINFO "${CMAKE_CXX_FLAGS_DEBUG} -std=c++11")
elseif(COMPILER_SUPPORTS_CXX0X)
list(APPEND ADDITIONAL_CXX_DEBUG_FLAGS "-std=c++0x" )
list(APPEND ADDITIONAL_CXX_RELEASE_FLAGS "-std=c++0x" )
list(APPEND ADDITIONAL_CXX_RELWITHDEBINFO_FLAGS "-std=c++0x" )
set( CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -std=c++0x")
set( CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_DEBUG} -std=c++0x")
set( CMAKE_CXX_FLAGS_RELWITHDEBINFO "${CMAKE_CXX_FLAGS_DEBUG} -std=c++0x")
else()
message(STATUS "The compiler ${CMAKE_CXX_COMPILER} has no C++11 support. Falling back to non C++11 mode. If you encounter errors, please use a different C++ compiler.")
endif()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment