forked from pool/paraview
Update to 5.5.2 OBS-URL: https://build.opensuse.org/request/show/629636 OBS-URL: https://build.opensuse.org/package/show/science/paraview?expand=0&rev=56
25 lines
925 B
Diff
25 lines
925 B
Diff
--- a/VTK/ThirdParty/libharu/vtklibharu/CMakeLists.txt
|
|
+++ b/VTK/ThirdParty/libharu/vtklibharu/CMakeLists.txt
|
|
@@ -125,6 +125,9 @@
|
|
endif(PNG_FOUND)
|
|
endif ()
|
|
|
|
+find_library(M_LIB m)
|
|
+set(ADDITIONAL_LIBRARIES ${ADDITIONAL_LIBRARIES} ${M_LIB})
|
|
+
|
|
# =======================================================================
|
|
# configure header files, add compiler flags
|
|
# =======================================================================
|
|
|
|
--- a/VTK/ThirdParty/libharu/vtklibharu/src/CMakeLists.txt
|
|
+++ b/VTK/ThirdParty/libharu/vtklibharu/src/CMakeLists.txt
|
|
@@ -102,7 +102,7 @@
|
|
endif(LIBHPDF_SHARED)
|
|
else ()
|
|
vtk_add_library(vtklibharu ${LIBHPDF_SRCS})
|
|
- target_link_libraries(vtklibharu PRIVATE ${vtkzlib_LIBRARIES} ${vtkpng_LIBRARIES})
|
|
+ target_link_libraries(vtklibharu PRIVATE ${vtkzlib_LIBRARIES} ${vtkpng_LIBRARIES} ${ADDITIONAL_LIBRARIES})
|
|
if (WIN32)
|
|
set_target_properties(vtklibharu
|
|
PROPERTIES
|