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>
This commit is contained in:
parent
4b016c87c1
commit
736408880b
@ -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}")
|
||||
|
Loading…
Reference in New Issue
Block a user