mirror of
https://github.com/reactos/CMake.git
synced 2024-12-15 07:41:15 +00:00
d89e10cd58
The code add_library(A OBJECT a.c) target_sources(A PRIVATE $<TARGET_OBJECTS:A>) used to crash CMake via infinite recursion while evaluating the generator expression. Then the change in commit v3.9.0-rc1~266^2~1 (cmGeneratorTarget: Replace source classifier implementation, 2017-04-07) avoided the infinite recursion because GetKindedSources now creates a map entry and initializes it once. If it is called again on the same target during that initialization, the partially computed results are returned. This is still wrong but does not crash. Detect and diagnose this case instead. Co-Author: Ben Boeckel <ben.boeckel@kitware.com> Fixes: #16578 |
||
---|---|---|
.. | ||
a.c | ||
b.c | ||
bad.def | ||
bad.obj | ||
BadObjSource1-result.txt | ||
BadObjSource1-stderr.txt | ||
BadObjSource1.cmake | ||
BadObjSource2-result.txt | ||
BadObjSource2-stderr.txt | ||
BadObjSource2.cmake | ||
BadSourceExpression1-result.txt | ||
BadSourceExpression1-stderr.txt | ||
BadSourceExpression1.cmake | ||
BadSourceExpression2-result.txt | ||
BadSourceExpression2-stderr.txt | ||
BadSourceExpression2.cmake | ||
BadSourceExpression3-result.txt | ||
BadSourceExpression3-stderr.txt | ||
BadSourceExpression3.cmake | ||
CMakeLists.txt | ||
Dependencies.cmake | ||
depends_lib.c | ||
depends_main.c | ||
depends_obj0.c | ||
depends_obj1.c | ||
Export.cmake | ||
ExportNotSupported-result.txt | ||
ExportNotSupported-stderr.txt | ||
ExportNotSupported.cmake | ||
Import.cmake | ||
ImportNotSupported-result.txt | ||
ImportNotSupported-stderr.txt | ||
ImportNotSupported.cmake | ||
Install.cmake | ||
InstallNotSupported-result.txt | ||
InstallNotSupported-stderr.txt | ||
InstallNotSupported.cmake | ||
LinkObjLHS-result.txt | ||
LinkObjLHS-stderr.txt | ||
LinkObjLHS.cmake | ||
LinkObjRHS1-result.txt | ||
LinkObjRHS1-stderr.txt | ||
LinkObjRHS1.cmake | ||
LinkObjRHS2-result.txt | ||
LinkObjRHS2-stderr.txt | ||
LinkObjRHS2.cmake | ||
MissingSource-result.txt | ||
MissingSource-stderr.txt | ||
MissingSource.cmake | ||
ObjWithObj-result.txt | ||
ObjWithObj-stderr.txt | ||
ObjWithObj.cmake | ||
OwnSources-result.txt | ||
OwnSources-stderr.txt | ||
OwnSources.cmake | ||
PostBuild-result.txt | ||
PostBuild-stderr.txt | ||
PostBuild.cmake | ||
PreBuild-result.txt | ||
PreBuild-stderr.txt | ||
PreBuild.cmake | ||
PreLink-result.txt | ||
PreLink-stderr.txt | ||
PreLink.cmake | ||
RunCMakeTest.cmake |