CPack error on packing iOS target
I'm trying to pack intalled files with cpack -GTGZ
but got error in cmake_install.cmake
script. The error is quite the same as with issue #12506 (closed) but fix should be done in another way. In #12506 (closed) we use environment variable EFFECTIVE_PLATFORM_NAME
which is set by Xcode and pass it by -DEFFECTIVE_PLATFORM_NAME=$(EFFECTIVE_PLATFORM_NAME)
to script. But now cpack -GTGZ
run outside of Xcode environment. Also for iOS-combined feature we need Xcode environment too (variables PLATFORM_NAME
and SUPPORTED_PLATFORMS
).
Any ideas?