Cmake: remove debug code that accidentially slipped in

And try to fix the upper case / mixed case confusion that we apparently
have with libssh2 - oh how I hate this stuff.

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Dirk Hohndel 2015-12-15 17:40:44 -08:00
parent a26eda9700
commit b5905f3ab7

View file

@ -102,15 +102,10 @@ else()
include_directories(${LIBGIT2_INCLUDE_DIR})
if(FORCE_LIBSSH)
find_package(Libssh2 QUIET CONFIG)
find_package(Libssh2 REQUIRED)
if ("${LIBSSH2_VERSION}" STRGREATER "1.6.1")
set(LIBSSH2_LIBRARIES Libssh2::libssh2)
endif()
get_cmake_property(_variableNames VARIABLES)
foreach (_variableName ${_variableNames})
message(STATUS "${_variableName}=${${_variableName}}")
endforeach()
if(!Libssh2_FOUND OR "${Libssh2_FOUND}" STREQUAL "")
if(!Libssh2_FOUND AND !LIBSSH2_FOUND)
pkg_config_library(LIBSSH2 libssh2 REQUIRED)
endif()
endif()