From 76f39696b7bb21e841f9bb18f01c58893818edc4 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jan=20R=C4=99korajski?= Date: Mon, 3 Aug 2020 08:47:47 +0200 Subject: [PATCH] - working solution for libm linking --- link.patch | 22 +++++++++------------- 1 file changed, 9 insertions(+), 13 deletions(-) diff --git a/link.patch b/link.patch index 685d0cc..1e3cb56 100644 --- a/link.patch +++ b/link.patch @@ -18,18 +18,14 @@ if (NOT VTK_INSTALL_NO_DEVELOPMENT) install(FILES ${headers} ---- VTK-8.2.0/ThirdParty/libharu/vtklibharu/CMakeLists.txt.orig 2020-08-02 10:14:54.000000000 +0200 -+++ VTK-8.2.0/ThirdParty/libharu/vtklibharu/CMakeLists.txt 2020-08-02 10:25:09.955242344 +0200 -@@ -298,3 +297,5 @@ - - INCLUDE( CPack ) - endif () -+ -+find_library(M_LIBRARY m) --- VTK-8.2.0/ThirdParty/libharu/vtklibharu/src/CMakeLists.txt~ 2019-01-30 18:15:13.000000000 +0100 +++ VTK-8.2.0/ThirdParty/libharu/vtklibharu/src/CMakeLists.txt 2020-08-02 10:25:38.091690113 +0200 -@@ -113,3 +113,4 @@ - "$" - "$") - endif () -+target_link_libraries(vtklibharu PUBLIC ${M_LIBRARY}) +@@ -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} m) + if (WIN32) + set_target_properties(vtklibharu + PROPERTIES -- 2.44.0