summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorAlbert Astals Cid <albert.astals.cid@kdab.com>2019-06-04 15:55:41 +0200
committerAlbert Astals Cid <albert.astals.cid@kdab.com>2019-06-05 09:10:51 +0000
commitbfa209dfa557e7c30d654add09f5c8f97cfc2492 (patch)
treee3bdc19f60d742ee810eabffbab5b90a4a5de2e1 /tests
parentfecd9d90daa22b33c40a709da21cef62bfa44a15 (diff)
cmake: build with exceptions disabled by default
Only re-enable exceptions for the modules that do CONFIG+=exceptions in qmake Change-Id: I9f19078adbdc1b8fa3d4102fb51a099e7e35522e Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
Diffstat (limited to 'tests')
-rw-r--r--tests/auto/corelib/global/qglobalstatic/CMakeLists.txt1
-rw-r--r--tests/auto/testlib/selftests/exceptionthrow/CMakeLists.txt1
-rw-r--r--tests/auto/testlib/selftests/verifyexceptionthrown/CMakeLists.txt1
3 files changed, 3 insertions, 0 deletions
diff --git a/tests/auto/corelib/global/qglobalstatic/CMakeLists.txt b/tests/auto/corelib/global/qglobalstatic/CMakeLists.txt
index 3aa4511d6f..fc31f1ea99 100644
--- a/tests/auto/corelib/global/qglobalstatic/CMakeLists.txt
+++ b/tests/auto/corelib/global/qglobalstatic/CMakeLists.txt
@@ -1,4 +1,5 @@
add_qt_test(tst_qglobalstatic
+ EXCEPTIONS
SOURCES
tst_qglobalstatic.cpp
DEFINES
diff --git a/tests/auto/testlib/selftests/exceptionthrow/CMakeLists.txt b/tests/auto/testlib/selftests/exceptionthrow/CMakeLists.txt
index 1e67b630bd..71d3aa1e74 100644
--- a/tests/auto/testlib/selftests/exceptionthrow/CMakeLists.txt
+++ b/tests/auto/testlib/selftests/exceptionthrow/CMakeLists.txt
@@ -5,6 +5,7 @@
#####################################################################
add_qt_executable(exceptionthrow
+ EXCEPTIONS
NO_INSTALL # special case
OUTPUT_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR} # special case
GUI
diff --git a/tests/auto/testlib/selftests/verifyexceptionthrown/CMakeLists.txt b/tests/auto/testlib/selftests/verifyexceptionthrown/CMakeLists.txt
index 817eddaee8..24dd224107 100644
--- a/tests/auto/testlib/selftests/verifyexceptionthrown/CMakeLists.txt
+++ b/tests/auto/testlib/selftests/verifyexceptionthrown/CMakeLists.txt
@@ -5,6 +5,7 @@
#####################################################################
add_qt_executable(verifyexceptionthrown
+ EXCEPTIONS
NO_INSTALL # special case
OUTPUT_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR} # special case
GUI