diff options
author | Tim Blechmann <tim@klingt.org> | 2024-04-12 15:03:14 +0800 |
---|---|---|
committer | Tim Blechmann <tim@klingt.org> | 2024-04-13 08:18:36 +0800 |
commit | edc2d414562ece8b139b1cd1fcf77df245d0573f (patch) | |
tree | bebebf15df75e30c5126cafff74e01516c4cfb6a /cmake/QtTestHelpers.cmake | |
parent | c68f8db62b3492074a73e754d4668c2d693cdafa (diff) |
CMake: qt_internal_add_test - fix BLACKLIST file handling
Not all tests have targets that we can attach the BLACKLIST files to.
Pick-to: 6.7
Change-Id: Ie0a2d72859877a8803802a4f7dc996944f002656
Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
Diffstat (limited to 'cmake/QtTestHelpers.cmake')
-rw-r--r-- | cmake/QtTestHelpers.cmake | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/cmake/QtTestHelpers.cmake b/cmake/QtTestHelpers.cmake index a465f462f9..705de2f739 100644 --- a/cmake/QtTestHelpers.cmake +++ b/cmake/QtTestHelpers.cmake @@ -582,11 +582,11 @@ function(qt_internal_add_test name) ) set_target_properties(${name} PROPERTIES _qt_is_test_executable TRUE) set_target_properties(${name} PROPERTIES _qt_is_manual_test ${arg_MANUAL}) - endif() - set(blacklist_file "${CMAKE_CURRENT_SOURCE_DIR}/BLACKLIST") - if(EXISTS ${blacklist_file}) - _qt_internal_expose_source_file_to_ide("${name}" ${blacklist_file}) + set(blacklist_file "${CMAKE_CURRENT_SOURCE_DIR}/BLACKLIST") + if(EXISTS ${blacklist_file}) + _qt_internal_expose_source_file_to_ide("${name}" ${blacklist_file}) + endif() endif() foreach(path IN LISTS arg_QML_IMPORTPATH) |