mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-06 05:40:54 -06:00
Rather than injecting `CMakeLists.txt` files into each target's `SOURCES`, teach the generators to add them during generation using dedicated code. This avoids mutating the original targets, and avoids polluting `$<TARGET_PROPERTY:foo,SOURCES>` with generator-specific content. This also avoids listing the `CMakeLists.txt` sources in the results of `CMAKE_DEBUG_TARGET_PROPERTIES==SOURCES` so the `RunCMake.TargetSources` test no longer needs a separate case for IDEs.
13 lines
333 B
Plaintext
13 lines
333 B
Plaintext
CMake Error in CMakeLists.txt:
|
|
Target "somelib" has source files which vary by configuration. This is not
|
|
supported by the "[^"]+" generator.
|
|
|
|
Config "Debug":
|
|
|
|
.*/Tests/RunCMake/TargetSources/empty_1.cpp
|
|
.*/Tests/RunCMake/TargetSources/empty_2.cpp
|
|
|
|
Config "Release":
|
|
|
|
.*/Tests/RunCMake/TargetSources/empty_1.cpp
|