From 01a4f47781686a497745db0ffd0f4d65daff0ff2 Mon Sep 17 00:00:00 2001 From: Eike Ziller Date: Fri, 23 Dec 2022 09:03:22 +0100 Subject: [PATCH] Build: Disable cpack for commercial sources There isn't a single license that could be used, so to support this, it would need to be chosen somehow. Just disable for now, because otherwise CMake configuration breaks. Fixes: QTCREATORBUG-28603 Change-Id: I26a01d6ab317ffeb212d6e5517100eaf07963377 Reviewed-by: Cristian Adam --- CMakeLists.txt | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 5067c46ebd7..33563c04ac3 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -171,7 +171,8 @@ feature_summary(INCLUDE_QUIET_PACKAGES WHAT ENABLED_FEATURES DISABLED_FEATURES ) -if (CMAKE_SOURCE_DIR STREQUAL CMAKE_CURRENT_SOURCE_DIR) - # Only for non super repo builds +if (CMAKE_SOURCE_DIR STREQUAL CMAKE_CURRENT_SOURCE_DIR + AND EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/LICENSE.GPL3-EXCEPT") + # Only for opensource, non-super-repo builds add_subdirectory(packaging) endif()