Commit 1352d881 authored by Alexander Wiebel's avatar Alexander Wiebel
Browse files

[FIX] zlib is available on MacOS

parent bd3797a5
......@@ -5,9 +5,9 @@ MESSAGE( STATUS "Inlcuded NIfTI lib building information." )
OPTION ( BUILD_SHARED_LIBS "Toggle building shared libraries" ON)
# Zlib support currently only on Linux
IF( CMAKE_HOST_SYSTEM MATCHES Linux )
ADD_DEFINITIONS(-DHAVE_ZLIB)
# Zlib support currently not on Windows
IF( NOT ( CMAKE_HOST_SYSTEM MATCHES Windows ) )
ADD_DEFINITIONS( -DHAVE_ZLIB )
ENDIF()
SET(ZNZLIB_SRC znzlib.c)
......@@ -15,6 +15,11 @@ SET(NIFTI_ZNZLIB_NAME ${PACKAGE_PREFIX}znz)
ADD_LIBRARY(${NIFTI_ZNZLIB_NAME} ${ZNZLIB_SRC} )
TARGET_LINK_LIBRARIES( ${NIFTI_ZNZLIB_NAME} ${NIFTI_ZLIB_LIBRARIES} )
# Zlib support currently not on Windows
IF( NOT ( CMAKE_HOST_SYSTEM MATCHES Windows ) )
TARGET_LINK_LIBRARIES( ${NIFTI_ZNZLIB_NAME} z )
ENDIF()
# Zlib support currently only on Linux
IF( CMAKE_HOST_SYSTEM MATCHES Linux )
TARGET_LINK_LIBRARIES( ${NIFTI_ZNZLIB_NAME} z)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment