Skip to content

Commit

Permalink
fix: only install libs when required
Browse files Browse the repository at this point in the history
  • Loading branch information
Curve committed Mar 17, 2024
1 parent 01f159e commit 7c0f653
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion python/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -66,12 +66,18 @@ endmacro()
setup_binding(viennaps2d -DVIENNAPS_PYTHON_DIMENSION=2)
setup_binding(viennaps3d -DVIENNAPS_PYTHON_DIMENSION=3)

set(VIENNARAY_HAS_LIBS OFF)

if(NOT VIENNARAY_DISABLE_COPY AND NOT VIENNARAY_SYSTEM_EMBREE)
set(VIENNARAY_HAS_LIBS ON)
setup_embree_env(${MODULE_NAME} ${VIENNAPS_LIBRARY_OUTPUT_DIR}/viennaps.libs)
endif()

if(WIN32 AND NOT VIENNALS_SYSTEM_VTK)
set(VIENNARAY_HAS_LIBS ON)
setup_vtk_env(${MODULE_NAME} ${VIENNAPS_LIBRARY_OUTPUT_DIR}/viennaps.libs)
endif()

install(DIRECTORY "viennaps.libs" DESTINATION .)
if(VIENNARAY_HAS_LIBS)
install(DIRECTORY "viennaps.libs" DESTINATION .)
endif()

0 comments on commit 7c0f653

Please sign in to comment.