Files
CMake/Tests/RunCMake/CrosscompilingEmulator/AddCustomCommand-build-check.cmake
Brad King 13ece67a58 Add genex support to TEST_LAUNCHER and CROSSCOMPILING_EMULATOR
Evaluate generator expressions in these properties, as they apply to
`add_test`, `add_custom_command`, and `add_custom_target`.

The `CMAKE_CROSSCOMPILING_EMULATOR` variable's `try_run` behavior occurs
at configure time and so cannot support generator expressions.
2024-01-29 10:30:24 -05:00

7 lines
256 B
CMake

foreach(output IN ITEMS output1 output2 output3 output4 output5)
if(NOT EXISTS "${RunCMake_TEST_BINARY_DIR}/${output}")
set(RunCMake_TEST_FAILED "Failed to create output:\n ${RunCMake_TEST_BINARY_DIR}/${output}")
return()
endif()
endforeach()