From 72fd60a84a6a8e24ce77f4d3884e3fd71f2acb06 Mon Sep 17 00:00:00 2001 From: Curve Date: Thu, 18 Apr 2024 15:19:12 +0200 Subject: [PATCH] refactor: can't use system vtk * We can't cleanly override system vtks rpath which will cause lookup issues --- cmake/vtk.cmake | 28 ++++------------------------ 1 file changed, 4 insertions(+), 24 deletions(-) diff --git a/cmake/vtk.cmake b/cmake/vtk.cmake index 29ad64ff..26ad03f7 100644 --- a/cmake/vtk.cmake +++ b/cmake/vtk.cmake @@ -5,28 +5,8 @@ macro(setup_vtk_env TARGET OUTPUT) # built. This is currently the case, and has been the case for prior vtk versions - However we # should keep an eye on this. - if(TARGET vtksys) - add_custom_command( - TARGET ${TARGET} - POST_BUILD - COMMAND ${CMAKE_COMMAND} -E copy_directory $ ${OUTPUT}) - else() - add_custom_command( - TARGET ${TARGET} - POST_BUILD - COMMAND ${CMAKE_COMMAND} -E make_directory ${OUTPUT}) - - foreach(target ${VTK_LIBRARIES}) - get_target_property(target_path ${target} LOCATION) - - if(target_path STREQUAL "target_path-NOTFOUND") - continue() - endif() - - add_custom_command( - TARGET ${TARGET} - POST_BUILD - COMMAND ${CMAKE_COMMAND} -E copy -t ${OUTPUT} ${target_path}) - endforeach() - endif() + add_custom_command( + TARGET ${TARGET} + POST_BUILD + COMMAND ${CMAKE_COMMAND} -E copy_directory $ ${OUTPUT}) endmacro()