1
0
insighttoolkit/nrrdio-linking.patch
Martin Pluskal 85caa88428 Accepting request 817843 from home:badshah400:branches:science
* Update to version 5.1.0: See https://blog.kitware.com/itk-5-1-0-available-for-download/.
* Drop dcmtk-cmake.patch: no longer needed when using system dcmtk.
* Update itklbfgs-linking.patch and nrrdio-linking.patch to upstream-blessed versions (minor changes only) [gh#InsightSoftwareConsortium/ITK#1867, gh#InsightSoftwareConsortium/ITK#1878].
* New BuildRequires: pkgconfig(libpcrecpp) and bison.
* Drop BuildRequires: tcpd-devel, no longer needed.
* Add necessary Requires: python3-numpy to python3-%{name} package.
* Update Requires for devel package and convert existing Requires to pkgconfig equivalents where possible.
* Pass -DITK_USE_SYSTEM_SWIG:BOOL=ON to cmake, otherwise it defaults to OFF and tries to download swig.
* Drop -DITK_USE_STRICT_CONCEPT_CHECKING:BOOL=ON option passed to cmake: no longer used.
* Drop -DITK_WRAPPING option passed to cmake: obsoleted by -DITK_WRAP_PYTHON.
* No longer need to `export CXXFLAGS+=" -I%{_includedir}/gdcm/"` [gh#InsightSoftwareConsortium/ITK#1768].
* Drop Group tags.
* Improve Summary and descriptions for packages.

OBS-URL: https://build.opensuse.org/request/show/817843
OBS-URL: https://build.opensuse.org/package/show/Application:Geo/insighttoolkit?expand=0&rev=22
2020-07-01 04:31:08 +00:00

19 lines
694 B
Diff

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)
ADD_DEFINITIONS(-DTEEM_ZLIB=1)
ADD_LIBRARY(ITKNrrdIO ${nrrdio_SRCS} )
-TARGET_LINK_LIBRARIES(ITKNrrdIO ${ITKZLIB_LIBRARIES})
+
+IF(UNIX)
+ TARGET_LINK_LIBRARIES(ITKNrrdIO ${ITKZLIB_LIBRARIES} m)
+ELSE(UNIX)
+ TARGET_LINK_LIBRARIES(ITKNrrdIO ${ITKZLIB_LIBRARIES})
+ENDIF(UNIX)
IF(ITK_LIBRARY_PROPERTIES)
SET_TARGET_PROPERTIES(ITKNrrdIO PROPERTIES ${ITK_LIBRARY_PROPERTIES})