summaryrefslogtreecommitdiffstats
path: root/cmake
diff options
context:
space:
mode:
authorRobert Griebl <robert.griebl@qt.io>2021-06-14 16:54:40 +0200
committerRobert Griebl <robert.griebl@qt.io>2021-06-14 18:32:47 +0000
commit6eea6e30c601a8864bfbb38fc063c536f243d991 (patch)
treee9ce1e01fbfba81bd75bcb5e77564d5938cbcd98 /cmake
parent947052917524433263ea02d83ba28f08260add1e (diff)
cmake: Allow tools to enable exceptions
Needed for the QtApplicationManager tools. Pick-to: 6.2 Change-Id: I987b297406b6659d777ce5c00f9fc1b89ccc80ab Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io> Reviewed-by: Alexey Edelev <alexey.edelev@qt.io> Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
Diffstat (limited to 'cmake')
-rw-r--r--cmake/QtToolHelpers.cmake8
1 files changed, 7 insertions, 1 deletions
diff --git a/cmake/QtToolHelpers.cmake b/cmake/QtToolHelpers.cmake
index b923f1d393..24ab9e0162 100644
--- a/cmake/QtToolHelpers.cmake
+++ b/cmake/QtToolHelpers.cmake
@@ -31,7 +31,7 @@
#
function(qt_internal_add_tool target_name)
qt_tool_target_to_name(name ${target_name})
- set(option_keywords BOOTSTRAP NO_INSTALL USER_FACING INSTALL_VERSIONED_LINK)
+ set(option_keywords BOOTSTRAP NO_INSTALL USER_FACING INSTALL_VERSIONED_LINK EXCEPTIONS)
set(one_value_keywords
TOOLS_TARGET
INSTALL_DIR
@@ -139,6 +139,11 @@ function(qt_internal_add_tool target_name)
set(bootstrap BOOTSTRAP)
endif()
+ set(exceptions "")
+ if(arg_EXCEPTIONS)
+ set(exceptions EXCEPTIONS)
+ endif()
+
set(install_dir "${INSTALL_BINDIR}")
if(arg_INSTALL_DIR)
set(install_dir "${arg_INSTALL_DIR}")
@@ -146,6 +151,7 @@ function(qt_internal_add_tool target_name)
qt_internal_add_executable("${target_name}" OUTPUT_DIRECTORY "${QT_BUILD_DIR}/${install_dir}"
${bootstrap}
+ ${exceptions}
NO_INSTALL
SOURCES ${arg_SOURCES}
INCLUDE_DIRECTORIES