diff options
author | Michal Klocek <michal.klocek@qt.io> | 2023-10-09 12:12:43 +0200 |
---|---|---|
committer | Michal Klocek <michal.klocek@qt.io> | 2023-12-01 16:46:51 +0000 |
commit | 7cb5bf9a3da8f445cd18d84d2ee0f90958feb2c5 (patch) | |
tree | 99a8396bb48c8ec860bbb25c18a83a8a3aa694a1 /cmake | |
parent | 98cbbff6e6a2030ea1a2a2904f535fced6dc4182 (diff) |
Support pkg-config on mac
The user can compile qt with pkg-config support on mac,
in this case and only in this case we should also use pkg-config
in qtwebengine.
Use pkg-config feature from core. Add missing ldir flags to linker.
Fixes: QTBUG-115357
Pick-to: 6.6
Change-Id: I401949a50c8199a7d400455db5fbbb4e0de652b0
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
Diffstat (limited to 'cmake')
-rw-r--r-- | cmake/Functions.cmake | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cmake/Functions.cmake b/cmake/Functions.cmake index a3ddd3f62..dd9ec1572 100644 --- a/cmake/Functions.cmake +++ b/cmake/Functions.cmake @@ -476,7 +476,7 @@ function(add_linker_options target buildDir completeStatic) if(NOT completeStatic) target_link_options(${cmakeTarget} PRIVATE "$<$<CONFIG:${config}>:@${archives_rsp}>") endif() - target_link_options(${cmakeTarget} PRIVATE "$<$<CONFIG:${config}>:@${libs_rsp}>") + target_link_options(${cmakeTarget} PRIVATE "$<$<CONFIG:${config}>:@${ldir_rsp}>" "$<$<CONFIG:${config}>:@${libs_rsp}>") endif() if(WIN32) get_copy_of_response_file(objects_rsp ${target} objects) |