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>
This commit is contained in:
parent
b686cae50c
commit
2955a25f01
@ -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