Created
June 20, 2024 11:01
-
-
Save torarnv/981e800ba61a19d90104cfe69e89bc84 to your computer and use it in GitHub Desktop.
Revisions
-
torarnv created this gist
Jun 20, 2024 .There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,21 @@ 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 "")