aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCristian Adam <cristian.adam@qt.io>2021-12-13 19:48:31 +0100
committerCristian Adam <cristian.adam@qt.io>2021-12-14 09:54:31 +0000
commit1b1527b64f9c432de12c033adbd227d91410fa49 (patch)
tree42f2a7150f0ba15f4af34366b75d68df6506e9be
parent323567e64a3b319d93584363688bcba6424500d4 (diff)
CMake: SKIP_DEPENDENCY for gtest_add_tests for unittest
Without SKIP_DEPENDENCY the source files would be treated as cmake list files, which meant that for every source change cmake would have been rerun. Change-Id: Icc087fa951fa7e7aee25504367b6146e66bf9dcb Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Marco Bubke <marco.bubke@qt.io> Reviewed-by: Eike Ziller <eike.ziller@qt.io>
-rw-r--r--cmake/QtCreatorAPI.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmake/QtCreatorAPI.cmake b/cmake/QtCreatorAPI.cmake
index 037a198bba..5ad96902af 100644
--- a/cmake/QtCreatorAPI.cmake
+++ b/cmake/QtCreatorAPI.cmake
@@ -862,7 +862,7 @@ function(finalize_qtc_gtest test_name exclude_sources_regex)
list(FILTER test_sources EXCLUDE REGEX "${exclude_sources_regex}")
endif()
include(GoogleTest)
- gtest_add_tests(TARGET ${test_name} SOURCES ${test_sources} TEST_LIST test_list)
+ gtest_add_tests(TARGET ${test_name} SOURCES ${test_sources} TEST_LIST test_list SKIP_DEPENDENCY)
foreach(test IN LISTS test_list)
finalize_test_setup(${test})