Swift: CMake 3.29.0-rc1 fails to produce working Swift macro executables
The macro executables produced when CMake 3.29.0-rc1 CMP0157 is set to NEW
don't have the correct module name associated with them.
The Swift macro executable builds, but is invalid when someone tries to use it:
SwiftCMakeMacroTest/hello.swift:4:7: error: macro implementation type 'MacroTestMacros.StringifyMacro' could not be found in executable plugin 'SwiftCMakeMacroTest/build/MacroTestMacros-prefix/src/MacroTestMacros-build/MacroTestMacros'
When the CMP0157 is set to OLD
or when using CMake 3.28, the macro works as expected.