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 <dirk@hohndel.org>
This commit is contained in:
Dirk Hohndel 2015-04-05 17:41:35 -07:00
parent 352433723d
commit 5722d5f0dc

View file

@ -155,6 +155,8 @@ if(CMAKE_SYSTEM_NAME STREQUAL "Linux")
if(NOT DEFINED LRELEASE) if(NOT DEFINED LRELEASE)
set(LRELEASE lrelease) set(LRELEASE lrelease)
endif() endif()
# in some builds we appear to be missing libz for some strange reason...
set(SUBSURFACE_LINK_LIBRARIES ${SUBSURFACE_LINK_LIBRARIES} -lz)
ENDIF() ENDIF()
IF(CMAKE_SYSTEM_NAME STREQUAL "Darwin") IF(CMAKE_SYSTEM_NAME STREQUAL "Darwin")
set(SUBSURFACE_TARGET Subsurface) set(SUBSURFACE_TARGET Subsurface)