diff options
author | Alexandru Croitor <alexandru.croitor@qt.io> | 2020-04-06 15:11:35 +0200 |
---|---|---|
committer | Alexandru Croitor <alexandru.croitor@qt.io> | 2020-04-06 15:39:43 +0200 |
commit | e4f1c1068bccea38889ba1d66dfcecacbb9f6634 (patch) | |
tree | e9cba87c3923fa5d268e9bde99207985663946a7 /tools/CMakeLists.txt | |
parent | 666bd50d59131d00f4008d453fdcd7ba1dcd5342 (diff) |
CMake: Exclude building apps when cross-compiling
It would fail the iOS multi-arch build otherwise, at link time
with
Undefined symbols for architecture x86_64:
"_adler32", referenced from:
_png_icc_set_sRGB in libQt6BundledLibpng.a(png.c.o)<Paste>
....
This is due to us using system zlib instead of bundled zlib. Because
system zlib only has one slice of architectures (either device or
simulator), we get the above linker error.
Solution is not to link (build) the apps at all).
This is consistent with what qmake does.
Change-Id: Ief2e63a8da49f9daac4f5542e78b0f0b3d37ed93
Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
Diffstat (limited to 'tools/CMakeLists.txt')
-rw-r--r-- | tools/CMakeLists.txt | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tools/CMakeLists.txt b/tools/CMakeLists.txt index b1c05782b3..35b5876598 100644 --- a/tools/CMakeLists.txt +++ b/tools/CMakeLists.txt @@ -51,3 +51,10 @@ endif() if(QT_FEATURE_qml_devtools) endif() +# special case begin +qt_exclude_tool_directories_from_default_target( + qmlprofiler + qmlplugindump + qmleasing +) +# special case end |