mirror of
https://github.com/llvm/llvm-project.git
synced 2025-05-02 15:36:08 +00:00

As explained in https://gitlab.kitware.com/cmake/cmake/-/issues/21045, both branches of an $<IF> generator expression are evaluated eagerly by CMake. As a result, if the non-selected branch contains an invalid generator expression (such as getting the OUTPUT_NAME property of a non-existent target), a hard error will occur. This failed builds using the cxxrt ABI library, which doesn't create a CMake target currently.