Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
9.2.2023: Due to updates GitLab will be unavailable for some minutes between 9:00 and 11:00.
Open sidebar
CAMP
campvis-public
Commits
7c9beba2
Commit
7c9beba2
authored
Oct 29, 2013
by
Christian Schulte zu Berge
Browse files
Added C++11 support in GCC
parent
09164e00
Changes
1
Hide whitespace changes
Inline
Side-by-side
cmake/commonconf.cmake
View file @
7c9beba2
...
@@ -120,9 +120,16 @@ IF(WIN32)
...
@@ -120,9 +120,16 @@ IF(WIN32)
ELSEIF
(
UNIX
)
ELSEIF
(
UNIX
)
LIST
(
APPEND CampvisGlobalDefinitions
"-DUNIX"
)
LIST
(
APPEND CampvisGlobalDefinitions
"-DUNIX"
)
LIST
(
APPEND CampvisGlobalDefinitions
"-Wall -Wno-unused-local-typedefs -Wno-unused-variable"
)
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
)
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
# tgt configuration
LIST
(
APPEND CampvisGlobalDefinitions
"-DTGT_WITHOUT_DEFINES"
)
# don't use tgt's build system
LIST
(
APPEND CampvisGlobalDefinitions
"-DTGT_WITHOUT_DEFINES"
)
# don't use tgt's build system
IF
(
WIN32
)
IF
(
WIN32
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment