Fix a bug in flags for SMP
git-svn-id: svn://scm.gforge.inria.fr/svnroot/paradiseo@2715 331e1502-861f-0410-8da2-ba01fb791d7f
This commit is contained in:
parent
0890c67d31
commit
d929341d04
1 changed files with 8 additions and 2 deletions
|
|
@ -1,5 +1,4 @@
|
|||
######################################################################################
|
||||
### 0) Detect the configuration
|
||||
tion
|
||||
######################################################################################
|
||||
|
||||
# Inspired by Boost and SFML CMake files
|
||||
|
|
@ -33,6 +32,12 @@ endif()
|
|||
### 0) Define general CXX flags for DEBUG and RELEASE
|
||||
######################################################################################
|
||||
|
||||
if(DEBUG)
|
||||
set(CMAKE_BUILD_TYPE "Debug" CACHE STRING "" FORCE)
|
||||
else(DEBUG)
|
||||
set(CMAKE_BUILD_TYPE "Release" CACHE STRING "" FORCE)
|
||||
endif(DEBUG)
|
||||
|
||||
add_definitions(-DDEPRECATED_MESSAGES)
|
||||
set(CMAKE_CXX_FLAGS_DEBUG "-Wunknown-pragmas -O0 -g -Wall -Wextra -ansi -pedantic" CACHE STRING "" FORCE)
|
||||
set(CMAKE_CXX_FLAGS_RELEASE "-Wunknown-pragmas -O2" CACHE STRING "" FORCE)
|
||||
|
|
@ -86,3 +91,4 @@ set(ENABLE_CMAKE_EXAMPLE "true" CACHE PATH "ParadisEO examples")
|
|||
if(UNIX)
|
||||
set(INSTALL_SUB_DIR /paradiseo)
|
||||
endif()
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue