2020-07-01 06:31:08 +02:00
|
|
|
diff --git a/Modules/ThirdParty/NrrdIO/src/NrrdIO/CMakeLists.txt b/Modules/ThirdParty/NrrdIO/src/NrrdIO/CMakeLists.txt
|
|
|
|
index 6c706f096a9..3039e426de5 100644
|
|
|
|
--- a/Modules/ThirdParty/NrrdIO/src/NrrdIO/CMakeLists.txt
|
|
|
|
+++ b/Modules/ThirdParty/NrrdIO/src/NrrdIO/CMakeLists.txt
|
|
|
|
@@ -64,7 +64,12 @@ ENDIF(QNANHIBIT)
|
2015-12-30 13:32:33 +01:00
|
|
|
ADD_DEFINITIONS(-DTEEM_ZLIB=1)
|
|
|
|
|
|
|
|
ADD_LIBRARY(ITKNrrdIO ${nrrdio_SRCS} )
|
|
|
|
-TARGET_LINK_LIBRARIES(ITKNrrdIO ${ITKZLIB_LIBRARIES})
|
2020-07-01 06:31:08 +02:00
|
|
|
+
|
|
|
|
+IF(UNIX)
|
|
|
|
+ TARGET_LINK_LIBRARIES(ITKNrrdIO ${ITKZLIB_LIBRARIES} m)
|
|
|
|
+ELSE(UNIX)
|
|
|
|
+ TARGET_LINK_LIBRARIES(ITKNrrdIO ${ITKZLIB_LIBRARIES})
|
|
|
|
+ENDIF(UNIX)
|
2015-12-30 13:32:33 +01:00
|
|
|
|
|
|
|
IF(ITK_LIBRARY_PROPERTIES)
|
|
|
|
SET_TARGET_PROPERTIES(ITKNrrdIO PROPERTIES ${ITK_LIBRARY_PROPERTIES})
|