iOS: Fails with shared libraries using CMAKE_SYSTEM_NAME=iOS
Hello, I've updated to CMake 3.14 lately, and my cross-build workflow has been broken by the new Platform/Darwin.cmake
file.
The following lines result in CMAKE_SHARED_LIBRARY_RUNTIME_C_FLAG
not being defined, and thus breaking shared library builds:
string(REGEX REPLACE "^([0-9]+)\\.([0-9]+).*$" "\\1" DARWIN_MAJOR_VERSION "${CMAKE_SYSTEM_VERSION}")
string(REGEX REPLACE "^([0-9]+)\\.([0-9]+).*$" "\\2" DARWIN_MINOR_VERSION "${CMAKE_SYSTEM_VERSION}")
It seems to me that CMAKE_HOST_SYSTEM_VERSION
should be used instead.
EDIT: Nevermind that last comment...
Edited by Brad King