[PATCH] Fix build (link) on openSUSE builds (maybe due to recent cmake version)

Guillaume GARDET guillaume.gardet at free.fr
Thu Jul 21 03:55:23 PDT 2016


Signed-off-by: Guillaume GARDET <guillaume.gardet at free.fr>

---
 CMakeLists.txt | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 43d817c..fec2e16 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -150,7 +150,8 @@ elseif(CMAKE_SYSTEM_NAME STREQUAL "Linux")
         # this is only needed on Ubuntu
         # but shouldn't hurt on other Linux versions
         # in some builds we appear to be missing libz for some strange reason...
-        set(SUBSURFACE_LINK_LIBRARIES ${SUBSURFACE_LINK_LIBRARIES} -lz -lpthread)
+	# Add ssh2 at the end for openSUSE builds (for recent cmake?)
+        set(SUBSURFACE_LINK_LIBRARIES ${SUBSURFACE_LINK_LIBRARIES} -lssh2 -lz -lpthread)
 elseif(CMAKE_SYSTEM_NAME STREQUAL "Darwin")
         execute_process(
                 COMMAND sh scripts/get-version linux
-- 
1.8.4.5



More information about the subsurface mailing list