Commit 5f4460d5 authored by Simone Bna's avatar Simone Bna
Browse files

BUG #6: fixing missing dynamic libraries dependency

parent 96de53d3
......@@ -88,9 +88,14 @@ set_target_properties(
target_link_libraries(
catalystFoam
${VTK_LIBRARIES}
${LINK_LIBRARIES}
${OPENFOAM_LIBNAMES}
INTERFACE
VTK::PythonUsed
PRIVATE
ParaView::PythonCatalyst
${VTK_LIBRARIES}
${OPENFOAM_LIBNAMES}
${Python3_LIBRARY}
${LINK_LIBRARIES}
)
install(TARGETS catalystFoam DESTINATION lib)
......
......@@ -6,7 +6,9 @@ cd "${0%/*}" || exit # Run from this directory
# This cleanup handles both cmake runTimePostProcessing and the dummy version
# Cleanup library files with .so version endings
rm -f $FOAM_LIBBIN/librunTimePostProcessing*
rm -f $FOAM_LIBBIN/librunTimePostProcessing* # Cleanup library
rm -f $FOAM_SITE_LIBBIN/librunTimePostProcessing* # ... extra safety
rm -f $FOAM_USER_LIBBIN/librunTimePostProcessing* # ... extra safety
# Cleanup generated files - remove entire top-level
removeObjectDir "$PWD"
......
......@@ -105,6 +105,7 @@ set_target_properties(
target_link_libraries(
runTimePostProcessing
${VTK_LIBRARIES}
${Python3_LIBRARY}
  • @sbna I think it is fair to assume that VTK may not python support added. Won't this fail??

Please register or sign in to reply
${LINK_LIBRARIES}
${OPENFOAM_LIBNAMES}
)
......
......@@ -69,13 +69,6 @@ if (VTK_MAJOR_VERSION AND NOT VTK_VERSION_MAJOR)
endif()
endif()
if (${ParaView_VERSION} GREATER 0)
Please register or sign in to reply
# Newer VTK - try to load optional MPI?
if (${VTK_VERSION} GREATER 8.2)
find_package(VTK REQUIRED OPTIONAL_COMPONENTS ParallelMPI)
endif()
endif()
#-----------------------------------------------------------------------------
message("================")
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment