summaryrefslogtreecommitdiffstats
path: root/Tools/qmake/projects/run_cmake.pro
diff options
context:
space:
mode:
Diffstat (limited to 'Tools/qmake/projects/run_cmake.pro')
-rw-r--r--Tools/qmake/projects/run_cmake.pro13
1 files changed, 7 insertions, 6 deletions
diff --git a/Tools/qmake/projects/run_cmake.pro b/Tools/qmake/projects/run_cmake.pro
index 45d97e976..4b47f54f4 100644
--- a/Tools/qmake/projects/run_cmake.pro
+++ b/Tools/qmake/projects/run_cmake.pro
@@ -73,6 +73,11 @@ build_pass|!debug_and_release {
}
exists($$QMAKE_MAC_SDK_PATH): CMAKE_CONFIG += CMAKE_OSX_SYSROOT=$$QMAKE_MAC_SDK_PATH
!isEmpty(QMAKE_MACOSX_DEPLOYMENT_TARGET): CMAKE_CONFIG += CMAKE_OSX_DEPLOYMENT_TARGET=$$QMAKE_MACOSX_DEPLOYMENT_TARGET
+
+ # Hack: install frameworks in debug_and_release in separate prefixes
+ debug_and_release:build_all:CONFIG(debug, debug|release) {
+ CMAKE_CONFIG += CMAKE_INSTALL_PREFIX=\"$$[QT_INSTALL_PREFIX]/debug\"
+ }
}
equals(QMAKE_HOST.os, Windows) {
@@ -112,17 +117,13 @@ build_pass|!debug_and_release {
QMAKE_EXTRA_TARGETS += default_target
# When debug and release are built at the same time, don't install data files twice
- debug_and_release:build_all:CONFIG(debug, debug|release) {
- cmake_install_args = "-DCOMPONENT=Code"
- # TODO: Fix macOS frameworks installation in debug_and_release
- macos: destdir_suffix = "/debug"
- }
+ debug_and_release:build_all:CONFIG(debug, debug|release): cmake_install_args = "-DCOMPONENT=Code"
install_impl_target.target = install_impl
install_impl_target.commands = cd $$cmake_build_dir && cmake $$cmake_install_args -P cmake_install.cmake
QMAKE_EXTRA_TARGETS += install_impl_target
install_target.target = install
- install_target.commands = $(MAKE) -f $(MAKEFILE) install_impl $$make_args DESTDIR=$(INSTALL_ROOT)$$destdir_suffix
+ install_target.commands = $(MAKE) -f $(MAKEFILE) install_impl $$make_args DESTDIR=$(INSTALL_ROOT)
QMAKE_EXTRA_TARGETS += install_target
}