Commit 7c9beba2 authored by Christian Schulte zu Berge's avatar Christian Schulte zu Berge
Browse files

Added C++11 support in GCC

parent 09164e00
......@@ -120,9 +120,16 @@ IF(WIN32)
ELSEIF(UNIX)
LIST(APPEND CampvisGlobalDefinitions "-DUNIX")
LIST(APPEND CampvisGlobalDefinitions "-Wall -Wno-unused-local-typedefs -Wno-unused-variable")
LIST(APPEND CampvisGlobalDefinitions "-D__STDC_CONSTANT_MACROS")
LIST(APPEND CampvisGlobalDefinitions "-D__STDC_CONSTANT_MACROS")
ENDIF(WIN32)
IF(CMAKE_COMPILER_IS_GNUCXX)
# enable C++11 support in GCC
LIST(APPEND CMAKE_CXX_FLAGS "-std=c++11")
# however: we want to use the TBB implementation of threads
LIST(APPEND CampvisGlobalDefinitions "-DTBB_IMPLEMENT_CPP0X")
ENDIF()
# tgt configuration
LIST(APPEND CampvisGlobalDefinitions "-DTGT_WITHOUT_DEFINES") # don't use tgt's build system
IF(WIN32)
......
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