mirror of
https://github.com/reactos/CMake.git
synced 2024-11-24 20:19:53 +00:00
316815e1f4
Previously the command considered non-absolute source file paths relative to the associated target on the LHS. This causes problems in incremental builds where files are added from subdirectories and forces users to workaround by manually converting to absolute paths. Change this to enable more intuitive usage by projects. Fixes #17981
11 lines
288 B
CMake
11 lines
288 B
CMake
cmake_policy(SET CMP0076 NEW)
|
|
|
|
add_library(genexlib)
|
|
add_subdirectory(RelativePathInSubdirGenEx)
|
|
|
|
get_property(genexlib_sources TARGET genexlib PROPERTY SOURCES)
|
|
message(STATUS "genexlib: ${genexlib_sources}")
|
|
|
|
add_executable(genexmain main.cpp)
|
|
target_link_libraries(genexmain genexlib)
|