Skip to content

Commit 254a985

Browse files
committed
VTK can't seem to be able to use mac system headers
1 parent 9e1bfb5 commit 254a985

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

CMake/cdat_modules/vtk_external.cmake

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,18 @@ list(APPEND vtk_build_args
1717
-DVTK_USE_SYSTEM_HDF5:BOOL=ON
1818
-DVTK_USE_SYSTEM_NETCDF:BOOL=ON
1919
-DVTK_USE_SYSTEM_FREETYPE:BOOL=ON
20-
-DVTK_USE_SYSTEM_JPEG:BOOL=ON
21-
-DVTK_USE_SYSTEM_PNG:BOOL=ON
2220
)
21+
if (APPLE)
22+
list(APPEND vtk_build_args
23+
-DVTK_USE_SYSTEM_PNG:BOOL=OFF
24+
-DVTK_USE_SYSTEM_JPEG:BOOL=OFF
25+
)
26+
else()
27+
list(APPEND vtk_build_args
28+
-DVTK_USE_SYSTEM_PNG:BOOL=ON
29+
-DVTK_USE_SYSTEM_JPEG:BOOL=ON
30+
)
31+
endif()
2332

2433
# Turn off testing and other non essential featues
2534
list(APPEND vtk_build_args

0 commit comments

Comments
 (0)