build: disable package for debug config
This commit is contained in:
parent
329afb47be
commit
49622a24b2
1 changed files with 7 additions and 0 deletions
|
|
@ -139,6 +139,13 @@ elseif(UNIX AND NOT APPLE)
|
|||
endif()
|
||||
|
||||
option(BUILD_INSTALLER "Build installer" ON)
|
||||
|
||||
# Building of packages with debug config is forbidden
|
||||
if("${CMAKE_BUILD_TYPE}" STREQUAL "Debug")
|
||||
message(STATUS "Disabling packaging in debug mode")
|
||||
set(BUILD_INSTALLER OFF)
|
||||
endif()
|
||||
|
||||
if(BUILD_INSTALLER)
|
||||
add_subdirectory(deploy)
|
||||
endif()
|
||||
|
|
|
|||
Loading…
Reference in a new issue