summaryrefslogtreecommitdiffstats
path: root/cmake
diff options
context:
space:
mode:
authorTor Arne Vestbø <tor.arne.vestbo@qt.io>2020-06-25 17:53:53 +0200
committerTor Arne Vestbø <tor.arne.vestbo@qt.io>2020-06-26 14:58:42 +0200
commitcbd2973a191a49ff815ac48a21a8a4d80c1c14b9 (patch)
tree8d2a292554e25bb7dc7e87acc7a6bf45b98e8344 /cmake
parent554d40da584bdd0aa4e5fd545ccea867d111b907 (diff)
cmake: Pick up custom Info.plist in user projects
We can't rely on the MACOS define as that's set by our private QtPlatformSupport.cmake that's not shipped. Change-Id: I86c578a282a0833408a06d923954510a3579bdaa Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
Diffstat (limited to 'cmake')
-rw-r--r--cmake/QtConfig.cmake.in4
1 files changed, 2 insertions, 2 deletions
diff --git a/cmake/QtConfig.cmake.in b/cmake/QtConfig.cmake.in
index 8e828e8f33..6a80b71de3 100644
--- a/cmake/QtConfig.cmake.in
+++ b/cmake/QtConfig.cmake.in
@@ -44,8 +44,8 @@ list(APPEND CMAKE_MODULE_PATH "${_qt_import_prefix}")
list(APPEND CMAKE_MODULE_PATH "${_qt_import_prefix}/3rdparty/extra-cmake-modules/find-modules")
list(APPEND CMAKE_MODULE_PATH "${_qt_import_prefix}/3rdparty/kwin")
-if(MACOS)
- # Add module directory to pick up custom Info.plist template
+if(APPLE AND (NOT CMAKE_SYSTEM_NAME OR CMAKE_SYSTEM_NAME STREQUAL "Darwin"))
+ # Add module directory to pick up custom Info.plist template for macOS
list(APPEND CMAKE_MODULE_PATH "${_qt_import_prefix}/macos")
endif()