buildfix: do not always build release
Remove a test that was building Release if DEBUG was not set. The correct way to specify build is to use CMAKE_BUILD_TYPE.
This commit is contained in:
parent
d8022dc903
commit
bc544cc4a4
1 changed files with 0 additions and 6 deletions
|
|
@ -31,12 +31,6 @@ endif()
|
||||||
### 0) Define general CXX flags for DEBUG and RELEASE
|
### 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)
|
add_definitions(-DDEPRECATED_MESSAGES)
|
||||||
set(CMAKE_CXX_FLAGS_DEBUG "-Wunknown-pragmas -O0 -g -Wall -Wextra -ansi -pedantic" CACHE STRING "" FORCE)
|
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)
|
set(CMAKE_CXX_FLAGS_RELEASE "-Wunknown-pragmas -O2" CACHE STRING "" FORCE)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue