Skip to content

Instantly share code, notes, and snippets.

@torarnv
Created June 20, 2024 11:01
Show Gist options
  • Save torarnv/981e800ba61a19d90104cfe69e89bc84 to your computer and use it in GitHub Desktop.
Save torarnv/981e800ba61a19d90104cfe69e89bc84 to your computer and use it in GitHub Desktop.
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