mirror of
https://github.com/Kitware/CMake.git
synced 2026-05-03 21:00:01 -05:00
068cc545d9
Refactoring in commit v3.8.0-rc1~445^2~2 (cmTarget: Move sanity checks and computed property access to callers, 2016-10-13) exposed a typo in commit v3.8.0-rc1~445^2~3 (cmGeneratorTarget: Implement cmTargetPropertyComputer interface, 2016-10-13). Together they broke the `$<TARGET_PROPERTY:mytgt,SOURCES>` generator expression in the case that the `SOURCES` target property is populated in part by the `target_sources` command. Add the missing `;`-separator. Fixes: #17243
10 lines
403 B
CMake
10 lines
403 B
CMake
file(READ ${RunCMake_TEST_BINARY_DIR}/foo.txt foo_sources)
|
|
|
|
# VS generators inject CMakeLists.txt as a source. Remove it.
|
|
string(REGEX REPLACE ";[^;]*CMakeLists.txt$" "" foo_sources "${foo_sources}")
|
|
|
|
set(foo_expected "empty.c;empty2.c;empty3.c")
|
|
if(NOT foo_sources STREQUAL foo_expected)
|
|
set(RunCMake_TEST_FAILED "foo SOURCES was:\n [[${foo_sources}]]\nbut expected:\n [[${foo_expected}]]")
|
|
endif()
|