Skip to content

Commit

Permalink
Fix internal module naming in qmake .pri files
Browse files Browse the repository at this point in the history
Set the correct value to the _qt_config_module_name property at the
internal module creating step instead of appending _private suffix when
generating .pri files.

Amends 425ff34

Pick-to: 6.2
Fixes: QTBUG-94568
Change-Id: I6fa8089358bc638668e313c98c3aee680bf7ec2a
Reviewed-by: Alexandru Croitor <[email protected]>
  • Loading branch information
semlanik committed Jun 17, 2021
1 parent d3b9759 commit 8aee7c6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 3 additions & 0 deletions cmake/QtModuleHelpers.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,9 @@ function(qt_internal_add_module target)
set(property_prefix "")
endif()

if(arg_INTERNAL_MODULE)
string(APPEND arg_CONFIG_MODULE_NAME "_private")
endif()
set_target_properties(${target} PROPERTIES
_qt_config_module_name "${arg_CONFIG_MODULE_NAME}"
${property_prefix}QT_QMAKE_MODULE_CONFIG "${arg_QMAKE_MODULE_CONFIG}")
Expand Down
1 change: 0 additions & 1 deletion cmake/QtPriHelpers.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,6 @@ ${framework_base_path}/${fw_private_module_header_dir}")
set(config_module_name_base "${config_module_name}")

if (arg_INTERNAL_MODULE)
string(APPEND config_module_name "_private")
# Internal module pri needs to provide private headers
set(public_module_includes "${private_module_includes}")
endif()
Expand Down

0 comments on commit 8aee7c6

Please sign in to comment.