Skip to content

Commit

Permalink
cmake: remove spurious "-l" from linker flags
Browse files Browse the repository at this point in the history
Fixes #1552
  • Loading branch information
bjori authored and bagder committed Jul 6, 2017
1 parent 23b828b commit 75c3596
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Expand Up @@ -1275,7 +1275,7 @@ set(LDFLAGS "${CMAKE_SHARED_LINKER_FLAGS}")
set(LIBCURL_LIBS "")
set(libdir "${CMAKE_INSTALL_PREFIX}/lib")
foreach(_lib ${CMAKE_C_IMPLICIT_LINK_LIBRARIES} ${CURL_LIBS})
if(_lib MATCHES ".*/.*")
if(_lib MATCHES ".*/.*" OR _lib MATCHES "^-")
set(LIBCURL_LIBS "${LIBCURL_LIBS} ${_lib}")
else()
set(LIBCURL_LIBS "${LIBCURL_LIBS} -l${_lib}")
Expand Down

0 comments on commit 75c3596

Please sign in to comment.