Created
June 20, 2024 11:01
-
-
Save torarnv/981e800ba61a19d90104cfe69e89bc84 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git c/cmake/QtTargetHelpers.cmake w/cmake/QtTargetHelpers.cmake | |
index b90b95870d9..2619399d667 100644 | |
--- c/cmake/QtTargetHelpers.cmake | |
+++ w/cmake/QtTargetHelpers.cmake | |
@@ -505,7 +505,15 @@ function(qt_internal_setup_cmake_config_postfix) | |
set(default_cmake_debug_postfix "d") | |
endif() | |
elseif(APPLE) | |
- set(default_cmake_debug_postfix "_debug") | |
+ # Avoid setting a suffix for framework builds, as the | |
+ # libraries inside the framework are always unsuffixed, | |
+ # and we want to match that for plugins/static libs. | |
+ if(NOT QT_FEATURE_framework AND NOT FEATURE_framework) | |
+ set(default_cmake_debug_postfix "_debug") | |
+ message(WARNING "!!! Setting debug suffix") | |
+ else() | |
+ message(WARNING "Not setting debug suffix") | |
+ endif() | |
endif() | |
set(custom_postfix_vars "") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment