mirror of
https://github.com/Kitware/CMake.git
synced 2026-08-11 09:35:12 +00:00
Tests: fix RunCMake_TEST_FILTER with non-matching TargetGenexEvent
This commit is contained in:
@@ -50,15 +50,7 @@ if(NOT RunCMake_GENERATOR STREQUAL "Ninja Multi-Config")
|
||||
unset(RunCMake_TEST_NO_CLEAN)
|
||||
endif()
|
||||
|
||||
function(test_genex name)
|
||||
run_configure_and_build(${name})
|
||||
|
||||
if(NOT EXISTS "${RunCMake_BINARY_DIR}/${name}-build/wdir/touched")
|
||||
message(SEND_ERROR "File not created by target-dependent add_custom_command()!")
|
||||
endif()
|
||||
endfunction()
|
||||
|
||||
test_genex(TargetGenexEvent)
|
||||
run_configure_and_build(TargetGenexEvent)
|
||||
|
||||
if(NOT RunCMake_GENERATOR STREQUAL "Xcode")
|
||||
run_configure_and_build(CommentGenex)
|
||||
|
||||
@@ -0,0 +1,3 @@
|
||||
if(NOT EXISTS "${RunCMake_TEST_BINARY_DIR}/wdir/touched")
|
||||
set(RunCMake_TEST_FAILED "File not created by target-dependent add_custom_command()!")
|
||||
endif()
|
||||
Reference in New Issue
Block a user