diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2015-12-15 17:40:44 -0800 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2015-12-15 17:47:15 -0800 |
commit | b5905f3ab7f13192ec56bcd94623ab0ace7f3756 (patch) | |
tree | 37b542967772a2368ba7720cb9a805d7dd5f8b58 /CMakeLists.txt | |
parent | a26eda97009e643b137670be8df0d843d4328e51 (diff) | |
download | subsurface-b5905f3ab7f13192ec56bcd94623ab0ace7f3756.tar.gz |
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>
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 7 |
1 files changed, 1 insertions, 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() |