mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-05 13:20:47 -06:00
We don't define behavior for relative paths to the OUTPUT argument. Fix our tests to use full paths.
8 lines
259 B
CMake
8 lines
259 B
CMake
add_executable(mytest test.cpp)
|
|
|
|
file(GENERATE OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/runtest_info.cmake CONTENT [[
|
|
set(EXPECTED_MYTEST_NAME "$<TARGET_FILE_NAME:mytest>")
|
|
]])
|
|
|
|
set_property(INSTALL $<TARGET_FILE_NAME:mytest> PROPERTY CPACK_TEST_PROP2 PROP_VALUE2)
|