ExternalProject default INSTALL step not compatible with IOS_INSTALL_COMBINED
The default INSTALL step for CMake projects in ExternalProject is cmake --build . --target install --config CONFIG
. Due to changes in Xcode 12 this is not compatible with IOS_INSTALL_COMBINED
(see #21282 (comment 1242026)). However we could easily fix it by using cmake --install . --config CONFIG
instead.
Reproduce this with an iOS toolchain and:
cmake_minimum_required(VERSION 3.19)
project(TestiOS)
include(ExternalProject)
ExternalProject_Add(gtest
GIT_REPOSITORY https://github.com/google/googletest.git
CMAKE_ARGS "-DCMAKE_IOS_INSTALL_COMBINED=ON" "-DCMAKE_TOOLCHAIN_FILE=${CMAKE_TOOLCHAIN_FILE}" "-DBUILD_GMOCK=OFF"
GIT_TAG release-1.11.0
)
Edited by Harry Mallon