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>
This commit is contained in:
parent
c68f8db62b
commit
edc2d41456
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user