Skip to content

Commit

Permalink
Consider VTK on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
TLCFEM committed Sep 9, 2024
1 parent 311607e commit 53d546b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Option.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,8 @@ endif ()
if (USE_HDF5)
add_compile_definitions(SUANPAN_HDF5)
if (HAVE_VTK)
string(REGEX REPLACE "/lib6?4?/cmake/vtk" "/include/vtk" VTK_INCLUDE ${VTK_DIR})
string(REGEX REPLACE "/lib6?4?/cmake/vtk" "/include/vtk" VTK_INCLUDE ${VTK_DIR}) # on linux
string(REGEX REPLACE "\\\\lib6?4?\\\\cmake\\\\vtk" "\\\\include\\\\vtk" VTK_INCLUDE ${VTK_DIR}) # on windows
include_directories(${VTK_INCLUDE}/vtkhdf5)
include_directories(${VTK_INCLUDE}/vtkhdf5/src)
include_directories(${VTK_INCLUDE}/vtkhdf5/hl/src)
Expand Down

0 comments on commit 53d546b

Please sign in to comment.