Fixed: Only keep Release and Debug configurations in CMake
--HG-- branch : hotfix
This commit is contained in:
parent
b381ef6fae
commit
eb5fecf8ce
1 changed files with 3 additions and 2 deletions
|
@ -6,6 +6,9 @@ IF(NOT CMAKE_BUILD_TYPE)
|
||||||
SET(CMAKE_BUILD_TYPE "Release" CACHE STRING "" FORCE)
|
SET(CMAKE_BUILD_TYPE "Release" CACHE STRING "" FORCE)
|
||||||
ENDIF(NOT CMAKE_BUILD_TYPE)
|
ENDIF(NOT CMAKE_BUILD_TYPE)
|
||||||
|
|
||||||
|
# Declare CMAKE_CONFIGURATION_TYPES before PROJECT
|
||||||
|
SET(CMAKE_CONFIGURATION_TYPES "Debug;Release" CACHE STRING "" FORCE)
|
||||||
|
|
||||||
###
|
###
|
||||||
# Helper macro that generates .pc and installs it.
|
# Helper macro that generates .pc and installs it.
|
||||||
# Argument: name - the name of the .pc package, e.g. "nel-pacs.pc"
|
# Argument: name - the name of the .pc package, e.g. "nel-pacs.pc"
|
||||||
|
@ -384,8 +387,6 @@ MACRO(NL_SETUP_BUILD)
|
||||||
# Debug = NL_DEBUG
|
# Debug = NL_DEBUG
|
||||||
# Release = NL_RELEASE
|
# Release = NL_RELEASE
|
||||||
|
|
||||||
SET(CMAKE_CONFIGURATION_TYPES "Debug;Release" CACHE STRING "" FORCE)
|
|
||||||
|
|
||||||
IF(CMAKE_BUILD_TYPE MATCHES "Debug")
|
IF(CMAKE_BUILD_TYPE MATCHES "Debug")
|
||||||
SET(NL_BUILD_MODE "NL_DEBUG")
|
SET(NL_BUILD_MODE "NL_DEBUG")
|
||||||
ELSE(CMAKE_BUILD_TYPE MATCHES "Debug")
|
ELSE(CMAKE_BUILD_TYPE MATCHES "Debug")
|
||||||
|
|
Loading…
Reference in a new issue