From 49622a24b2c9da92c82752d8b4f6f1303ed4dbd3 Mon Sep 17 00:00:00 2001 From: sithlord48 Date: Fri, 3 Jan 2025 10:45:26 -0500 Subject: [PATCH] build: disable package for debug config --- CMakeLists.txt | 7 +++++++ 1 file changed, 7 insertions(+) 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()