From 5722d5f0dc40f850c517e412e6bb44bdc73c3749 Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Sun, 5 Apr 2015 17:41:35 -0700 Subject: cmake: add libz to end of linker line on Linux While I don't need this when building on Fedora 20, OBS builds for openSUSE appear to fail without this. Strange. Signed-off-by: Dirk Hohndel --- CMakeLists.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 9fa7365cc..6c1cae29b 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -155,6 +155,8 @@ if(CMAKE_SYSTEM_NAME STREQUAL "Linux") if(NOT DEFINED LRELEASE) set(LRELEASE lrelease) endif() + # in some builds we appear to be missing libz for some strange reason... + set(SUBSURFACE_LINK_LIBRARIES ${SUBSURFACE_LINK_LIBRARIES} -lz) ENDIF() IF(CMAKE_SYSTEM_NAME STREQUAL "Darwin") set(SUBSURFACE_TARGET Subsurface) -- cgit v1.2.3-70-g09d2