mirror of
https://github.com/Kitware/CMake.git
synced 2026-05-03 21:00:01 -05:00
13ece67a58
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.
12 lines
742 B
CMake
12 lines
742 B
CMake
# Cross-compiling is normally global. Cover it without duplicating everything.
|
|
set(CMAKE_CROSSCOMPILING 1)
|
|
add_executable(cxx_exe_cross_emulator ../../empty.cxx)
|
|
set_property(TARGET cxx_exe_cross_emulator PROPERTY CROSSCOMPILING_EMULATOR no-such-emulator)
|
|
|
|
add_executable(cxx_exe_cross_emulator_args ../../empty.cxx)
|
|
set_property(TARGET cxx_exe_cross_emulator_args PROPERTY CROSSCOMPILING_EMULATOR "no-such-emulator;arg1;arg2 with space")
|
|
|
|
add_executable(cxx_exe_test_launcher_and_cross_emulator ../../empty.cxx)
|
|
set_property(TARGET cxx_exe_test_launcher_and_cross_emulator PROPERTY TEST_LAUNCHER "$<1:no-such-launcher>")
|
|
set_property(TARGET cxx_exe_test_launcher_and_cross_emulator PROPERTY CROSSCOMPILING_EMULATOR "$<1:no-such-emulator>")
|