diff --git a/CMakeLists.txt b/CMakeLists.txt index f992d1614..46f8c61b6 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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()