qt5base-lts/bin
Alexandru Croitor a3917126e8 CMake: Automatically use Xcode generator in qt-cmake + iOS
When calling qt-cmake on the command line, we don't usually force
usage of a particular CMake generator and defer to the user's choice
or CMake's default for the host OS.

In the case of iOS, the generator that makes the most sense to use is
Xcode. One could also use Ninja / Unix Makefiles if the project
is only building static libraries, but for shared libraries and
executables the project likely needs the code signing
provided by xcodebuild.

When targeting iOS, use a different qt-cmake file template.

The iOS-specific shell script will set the CMAKE_GENERATOR environment
variable to 'Xcode'.
If no -G or -D CMAKE_GENERATOR is provided on the command line then
the project will use the Xcode generator. Otherwise the generator
given on the command line takes precedence.

The CMAKE_GENERATOR environment variable from the parent process is
completely ignored.

The logic is only done for iOS, to reduce the likeliness
of breaking the qt-cmake script for other platforms.

Note that Qt Creator does not use qt-cmake, but rather calls cmake
directly with additional options like the toolchain file,
architecture, sysroot, etc.

[ChangeLog][iOS][CMake] qt-cmake now defaults to using the Xcode
generator when targeting iOS projects.

Pick-to: 6.2 6.3
Fixes: QTBUG-100834
Change-Id: I39b3dce47cc9ee2f98678631e4bd035c59c65294
Reviewed-by: Jörg Bornemann <joerg.bornemann@qt.io>
2022-05-20 13:06:00 +02:00
..
qmake-and-qtpaths-wrapper.bat.in Provide a qtpaths wrapper script when cross-building Qt 2021-11-08 13:41:03 +01:00
qmake-and-qtpaths-wrapper.in Provide a qtpaths wrapper script when cross-building Qt 2021-11-08 13:41:03 +01:00
qt-cmake-private-install.cmake.in Add reference to CMake issue in qt-cmake-private-install-cmake.in 2021-03-31 15:32:30 +02:00
qt-cmake-standalone-test.in CMake: Allow usage of QtStandaloneTestTemplateProject as package component 2021-04-23 13:31:04 +02:00
qt-cmake.bat.in CMake: Make build system of installed Qt more relocatable 2020-05-07 15:41:16 +02:00
qt-cmake.in CMake: Make build system of installed Qt more relocatable 2020-05-07 15:41:16 +02:00
qt-cmake.ios.in CMake: Automatically use Xcode generator in qt-cmake + iOS 2022-05-20 13:06:00 +02:00
qt-configure-module.bat.in Add missing -help argument to qt-configure-module 2021-08-20 19:44:43 +02:00
qt-configure-module.in Add missing -help argument to qt-configure-module 2021-08-20 19:44:43 +02:00