diff options
author | Alexandru Croitor <alexandru.croitor@qt.io> | 2020-03-02 14:17:24 +0100 |
---|---|---|
committer | Alexandru Croitor <alexandru.croitor@qt.io> | 2020-03-06 00:31:25 +0100 |
commit | a9caec4a927c5966409e1e0828a4b341fc865441 (patch) | |
tree | dde5092dc794d2835c3d144c84e2e1a46c08c458 /cmake/QtSetup.cmake | |
parent | eb09b7aa75ee1b8c4c7d50315e6b6206b85f2822 (diff) |
CMake: Fix Ninja Multi-Config framework builds
Depends on a new bleeding edge feature in as-of-yet unreleased
CMake 3.18, that allows building macOS frameworks using the
Ninja Multi-Config generator targeting more than
one configuration.
It uses the new CMAKE_FRAMEWORK_MULTI_CONFIG_POSTFIX_DEBUG
property which tells CMake to create properly named debug artifacts
in the Multi-Config ninja file.
Without it, both debug and release artifacts would have the same
location (no _debug) postfix, so it would be unclear which file
ends up being compiled as last (the debug or release variant).
Change-Id: I3e10832551731a18317da8f9667d96cec3dc3028
Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
Diffstat (limited to 'cmake/QtSetup.cmake')
-rw-r--r-- | cmake/QtSetup.cmake | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/cmake/QtSetup.cmake b/cmake/QtSetup.cmake index 629c49e2e4..4b5e632847 100644 --- a/cmake/QtSetup.cmake +++ b/cmake/QtSetup.cmake @@ -37,6 +37,7 @@ if(WIN32) set(CMAKE_DEBUG_POSTFIX "d") elseif(APPLE) set(CMAKE_DEBUG_POSTFIX "_debug") + set(CMAKE_FRAMEWORK_MULTI_CONFIG_POSTFIX_DEBUG "_debug") endif() ## Position independent code: |