Skip to content

Instantly share code, notes, and snippets.

@torarnv
Created June 20, 2024 11:01
Show Gist options
  • Select an option

  • Save torarnv/981e800ba61a19d90104cfe69e89bc84 to your computer and use it in GitHub Desktop.

Select an option

Save torarnv/981e800ba61a19d90104cfe69e89bc84 to your computer and use it in GitHub Desktop.

Revisions

  1. torarnv created this gist Jun 20, 2024.
    21 changes: 21 additions & 0 deletions stdin.patch
    Original 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 "")