summaryrefslogtreecommitdiffstats
path: root/cmake
diff options
context:
space:
mode:
authorJoerg Bornemann <joerg.bornemann@qt.io>2020-10-21 17:50:34 +0200
committerJoerg Bornemann <joerg.bornemann@qt.io>2020-10-22 20:47:10 +0200
commit736408880bfc67246959b2a745849d849b269e0f (patch)
tree380e09b49b7be94484e767c3d78ab6bef2933503 /cmake
parent4b016c87c10c991aab6e8f21bb0ae92dd32e62d4 (diff)
CMake: Do not prepend -l to libs starting with dash in prl files
For example, we must not prepend -l to -pthread, -framework and -lfoo. Fixes: QTBUG-87760 Change-Id: Ie1bc7a76183c2c4980c519b5f23dde6c47ec85a9 Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
Diffstat (limited to 'cmake')
-rw-r--r--cmake/QtFinishPrlFile.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmake/QtFinishPrlFile.cmake b/cmake/QtFinishPrlFile.cmake
index 4b350b9339..93fd558bab 100644
--- a/cmake/QtFinishPrlFile.cmake
+++ b/cmake/QtFinishPrlFile.cmake
@@ -51,7 +51,7 @@ foreach(line ${lines})
endif()
endif()
else()
- if(NOT lib MATCHES "^-l" AND NOT lib MATCHES "^-framework")
+ if(NOT lib MATCHES "^-")
string(PREPEND lib "-l")
endif()
list(APPEND adjusted_libs "${lib}")