Changeset 6012351 in subsurface


Ignore:
Timestamp:
Jul 3, 2017, 1:47:23 PM (3 weeks ago)
Author:
Dirk Hohndel <dirk@…>
Branches:
master
Children:
096682c
Parents:
7a6cc12
Message:

Fix '-L-lcurl' linker warning

This would happen if we don't have a specific directory in LIBSSH2_LIBRARY_DIRS.

Signed-off-by: Dirk Hohndel <dirk@…>

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cmake/Modules/HandleFindGit2.cmake

    r1a54e42 r6012351  
    3232                pkg_config_library(LIBCURL libcurl REQUIRED)
    3333        endif()
    34         set(LIBGIT2_LIBRARIES ${LIBGIT2_LIBRARIES} -L${LIBSSH2_LIBRARY_DIRS} ${LIBSSH2_LIBRARIES} ${LIBCURL_LIBRARIES} -lcrypto)
     34        if("${LIBSSH2_LIBRARY_DIRS}" STREQUAL "")
     35                set(LIBGIT2_LIBRARIES ${LIBGIT2_LIBRARIES} ${LIBSSH2_LIBRARIES} ${LIBCURL_LIBRARIES} -lcrypto)
     36        else()
     37                set(LIBGIT2_LIBRARIES ${LIBGIT2_LIBRARIES} -L${LIBSSH2_LIBRARY_DIRS} ${LIBSSH2_LIBRARIES} ${LIBCURL_LIBRARIES} -lcrypto)
     38        endif()
    3539endif()
Note: See TracChangeset for help on using the changeset viewer.