build: disable package for debug config
This commit is contained in:
committed by
Chris Rizzitello
parent
329afb47be
commit
49622a24b2
@ -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()
|
||||
|
||||
Reference in New Issue
Block a user