From b5905f3ab7f13192ec56bcd94623ab0ace7f3756 Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Tue, 15 Dec 2015 17:40:44 -0800 Subject: 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 --- CMakeLists.txt | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 9e278427e..2bccbecd7 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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() -- cgit v1.2.3-70-g09d2