Index: VTK-9.0.0/ThirdParty/libharu/vtklibharu/CMakeLists.txt =================================================================== --- VTK-9.0.0.orig/ThirdParty/libharu/vtklibharu/CMakeLists.txt +++ VTK-9.0.0/ThirdParty/libharu/vtklibharu/CMakeLists.txt @@ -68,6 +68,8 @@ if(PNG_FOUND) find_library(M_LIB m) endif () +link_libraries(m) + # ======================================================================= # configure header files, add compiler flags # =======================================================================