Skip to content

Commit

Permalink
Fix Python libraries on macOS (#279)
Browse files Browse the repository at this point in the history
Co-authored-by: Lukas Breitwieser <lukas.breitwieser@cern.ch>
  • Loading branch information
TobiasDuswald and Lukas Breitwieser authored Oct 4, 2022
1 parent 4d366a9 commit 2b20377
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -574,7 +574,11 @@ if(paraview)

# We link against python3 libraries, so that the paraview libraries can
# resolve missing python symbols when creating binaries
set(REQUIRED_PARAVIEW_LIBRARIES "${ParaView_LIBRARIES};${Python_LIBRARIES}")
if(APPLE)
set(REQUIRED_PARAVIEW_LIBRARIES "${ParaView_LIBRARIES};${Python3_LIBRARIES}")
else()
set(REQUIRED_PARAVIEW_LIBRARIES "${ParaView_LIBRARIES};${Python_LIBRARIES}")
endif()
build_shared_library(VisualizationAdaptor
SELECTION selection-libVisualizationAdaptor.xml
SOURCES ${PV_SOURCES}
Expand Down

0 comments on commit 2b20377

Please sign in to comment.