From 736408880bfc67246959b2a745849d849b269e0f Mon Sep 17 00:00:00 2001 From: Joerg Bornemann Date: Wed, 21 Oct 2020 17:50:34 +0200 Subject: 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 --- cmake/QtFinishPrlFile.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cmake') 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}") -- cgit v1.2.3