CMake package and test build targets use wrong configuration with XCODE_EMIT_EFFECTIVE_PLATFORM_NAME = OFF
I am trying to run package and RUN_TESTS on an iOS project using the Xcode generator and with XCODE_EMIT_EFFECTIVE_PLATFORM_NAME
= OFF. After recent changes (see #23970 (closed) and !7730 (merged)) it is possible to build the project.
# this makes an incomplete package (binaries are missing)
cmake --build . --config Release --target package
# this fails with 'Test not available in configuration "Release-iphonesimulator"'
cmake --build . --config Release --target RUN_TESTS
# however these equivalents work
cpack . -C Release
ctest . -C Release
In AddGlobalTarget_Package
and AddGlobalTarget_Test
CMake is using GetCMakeCFGIntDir
as a config, but it seems to contain the platform name too at the moment.
Edited by Harry Mallon