summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--cmake/QtBuild.cmake8
1 files changed, 8 insertions, 0 deletions
diff --git a/cmake/QtBuild.cmake b/cmake/QtBuild.cmake
index 4c70202d32..f8bc709637 100644
--- a/cmake/QtBuild.cmake
+++ b/cmake/QtBuild.cmake
@@ -3039,6 +3039,14 @@ function(qt_generate_prl_file target install_dir)
else()
set(prefix_for_prl_name "$<TARGET_FILE_PREFIX:${target}>")
endif()
+
+ # For frameworks, the prl file should be placed under the Resources subdir.
+ get_target_property(is_framework ${target} FRAMEWORK)
+ if(is_framework)
+ get_target_property(fw_version ${target} FRAMEWORK_VERSION)
+ string(APPEND prefix_for_prl_name "Versions/${fw_version}/Resources/")
+ endif()
+
set(prl_file_name "${prefix_for_prl_name}$<TARGET_FILE_BASE_NAME:${target}>.prl")
file(GENERATE
OUTPUT "${prl_file_name}"