diff options
author | Tim Blechmann <tim@klingt.org> | 2024-04-12 15:03:14 +0800 |
---|---|---|
committer | Tim Blechmann <tim@klingt.org> | 2024-04-16 08:49:01 +0800 |
commit | 2955a25f01f7c3a5b097dcf5ff533d4466fd5dd0 (patch) | |
tree | bb4e99cb9a865faf1059121a6454d964446af832 /cmake | |
parent | b686cae50cbc6d76a7cbfd1c138586235d56c49b (diff) |
CMake: qt_internal_add_test - fix BLACKLIST file handling
Not all tests have targets that we can attach the BLACKLIST files to.
Change-Id: Ie0a2d72859877a8803802a4f7dc996944f002656
Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
(cherry picked from commit edc2d414562ece8b139b1cd1fcf77df245d0573f)
Reviewed-by: Alexey Edelev <alexey.edelev@qt.io>
Diffstat (limited to '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 6f3014a718..083724b3ba 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) |