mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-07 06:09:52 -06:00
Refactoring in commit 60307c5056 (cmGeneratorTarget: Replace source
classifier implementation, 2017-04-07) accidentally regressed support
for CMP0026's OLD behavior in the case of a source file written by
project code during the configure step after getting a LOCATION. We
should not perform full source classification until the generate step
because files written by the project's configure step may not exist yet.
Add special logic to support this case. Add a test case for it.
Reported-by: David Stoup <david.stoup@kitware.com>
16 lines
456 B
CMake
16 lines
456 B
CMake
include(RunCMake)
|
|
|
|
run_cmake(CMP0026-WARN)
|
|
run_cmake(CMP0026-OLD)
|
|
run_cmake(CMP0026-NEW)
|
|
run_cmake(CMP0026-IMPORTED)
|
|
run_cmake(CMP0026-CONFIG-LOCATION-NEW)
|
|
run_cmake(CMP0026-CONFIG-LOCATION-OLD)
|
|
run_cmake(CMP0026-CONFIG-LOCATION-WARN)
|
|
run_cmake(CMP0026-LOCATION-CONFIG-NEW)
|
|
run_cmake(CMP0026-LOCATION-CONFIG-OLD)
|
|
run_cmake(CMP0026-LOCATION-CONFIG-WARN)
|
|
run_cmake(ObjlibNotDefined)
|
|
run_cmake(LOCATION-and-TARGET_OBJECTS)
|
|
run_cmake(clear-cached-information)
|