[Regression] XCode generator complains IMPORTED_LOCATION is not set
I've bisected and the regression is due to 878ae038
At the end of the cmake run we get an error saying
CMake Error in CMakeLists.txt:
IMPORTED_LOCATION not set for imported target "MYTARGETNAME".
We have cmake code that does
set_target_properties(MYTARGETNAME PROPERTIES
IMPORTED_LINK_INTERFACE_LANGUAGE "CXX"
IMPORTED_LOCATION_DEBUG "${_IMPORT_PREFIX}/lib/${_platformDebug}"
IMPORTED_LOCATION_RELEASE "${_IMPORT_PREFIX}/lib/${_platformRelease}"
IMPORTED_LOCATION_MINSIZEREL "${_IMPORT_PREFIX}/lib/${_platformRelease}"
IMPORTED_LOCATION_RELWITHDEBINFO "${_IMPORT_PREFIX}/lib/${_platformRelease}"
INTERFACE_SOURCES "${_sources}"
INTERFACE_INCLUDE_DIRECTORIES "${_include_dirs}"
)
This works fine with cmake 3.27.9 and fails with 3.28.1