summaryrefslogtreecommitdiff
path: root/cmake/for_clients.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'cmake/for_clients.cmake')
-rw-r--r--cmake/for_clients.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmake/for_clients.cmake b/cmake/for_clients.cmake
index 01b4c0a84f7..dd79ea1039d 100644
--- a/cmake/for_clients.cmake
+++ b/cmake/for_clients.cmake
@@ -25,7 +25,7 @@ MACRO(EXTRACT_LINK_LIBRARIES target var)
# Filter out "general", it is not a library, just CMake hint
# Also, remove duplicates
IF(NOT lib STREQUAL "general" AND NOT ${var} MATCHES "-l${lib} ")
- IF (lib MATCHES "^\\-l")
+ IF (lib MATCHES "^\\-")
SET(${var} "${${var}} ${lib} ")
ELSEIF(lib MATCHES "^/")
IF (lib MATCHES "\\.(a|so([0-9.]*)|lib|dll|dylib)$")