3.23.0-rc1: Inner generator expression not evaluated
While attempting to build a project with the CMake 3.23.0 release candidate, an existing project failed to evaluate a generator expression which correctly evaluates in the latest stable release of CMake 3.22.2.
The improper evaluation results in substituting values which start with $<1:
at the front of the following expression:
"$<$<CONFIG:profile>:${${MY_NAME}_LIBRARY_RELEASE}>"
...which suggests that the final angle bracket might somehow be omitted during evaluation. This results in the following linker error:
LNK1104 cannot open file '$<1:C:\my_system_path\.o3de\3rdParty\packages\ilmbase-2.3.0-rev4-multiplatform\ilmbase\lib\Windows\Release\IlmImfUtil-2_3_s.lib'
The script in question is using INTERFACE IMPORTED, which may have been affected by a recent change to add usage requirements to INTERFACE_LINK_LIBRARIES dependencies in !6886 (merged)
This can be reproduced by cloning https://github.com/o3de/o3de and then running configure which will pull down the 3rd party library script Findilmbase.cmake. Configuration takes some effort, as described in https://www.o3de.org/docs/welcome-guide/setup/ . For convenience, the file in question is attached.
This behavior reproduced on a Windows 10 Machine, using MSVS 16.11.10