diff --git a/cmake/apple/MacDeployQt.cmake b/cmake/apple/MacDeployQt.cmake index acd7aae8d21..d754b83c46c 100644 --- a/cmake/apple/MacDeployQt.cmake +++ b/cmake/apple/MacDeployQt.cmake @@ -11,6 +11,9 @@ set(APP "${CPACK_TEMPORARY_INSTALL_DIRECTORY}/${CPACK_PROJECT_NAME_UCASE}.app") # Toggle command echoing & verbosity # 0 = no output, 1 = error/warning, 2 = normal, 3 = debug +if(DEFINED ENV{CPACK_DEBUG}) + set(CPACK_DEBUG "$ENV{CPACK_DEBUG}") +endif() if(NOT CPACK_DEBUG) set(VERBOSITY 1) set(COMMAND_ECHO NONE) diff --git a/cmake/linux/LinuxDeploy.cmake b/cmake/linux/LinuxDeploy.cmake index c195bd2f61b..2fc452ac8cc 100644 --- a/cmake/linux/LinuxDeploy.cmake +++ b/cmake/linux/LinuxDeploy.cmake @@ -32,6 +32,9 @@ endif() # Toggle command echoing & verbosity # 0 = no output, 1 = error/warning, 2 = normal, 3 = debug +if(DEFINED ENV{CPACK_DEBUG}) + set(CPACK_DEBUG "$ENV{CPACK_DEBUG}") +endif() if(NOT CPACK_DEBUG) set(VERBOSITY 1) set(APPIMAGETOOL_VERBOSITY "")