summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/add_subdirectory/ExcludeFromAll/check.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'Tests/RunCMake/add_subdirectory/ExcludeFromAll/check.cmake')
-rw-r--r--Tests/RunCMake/add_subdirectory/ExcludeFromAll/check.cmake6
1 files changed, 5 insertions, 1 deletions
diff --git a/Tests/RunCMake/add_subdirectory/ExcludeFromAll/check.cmake b/Tests/RunCMake/add_subdirectory/ExcludeFromAll/check.cmake
index 56a8abd..433c032 100644
--- a/Tests/RunCMake/add_subdirectory/ExcludeFromAll/check.cmake
+++ b/Tests/RunCMake/add_subdirectory/ExcludeFromAll/check.cmake
@@ -9,13 +9,17 @@ if(EXISTS ${RunCMake_TEST_BINARY_DIR}/check-debug.cmake)
"${subinc_lib}"
"${main_exe}"
)
- if(NOT EXISTS "${file}")
+ if(EXISTS "${file}")
+ # Remove for next step of test.
+ file(REMOVE "${file}")
+ else()
set(RunCMake_TEST_FAILED
"Artifact should exist but is missing:\n ${file}")
return()
endif()
endforeach()
foreach(file
+ "${zot_lib}"
"${bar_lib}"
)
if(EXISTS "${file}")