Skip to content

Commit 7154cf2

Browse files
committed
Skip IVtk modules when disabled
1 parent d1f9dbc commit 7154cf2

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

CMakeLists.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -189,6 +189,11 @@ foreach(MOD ${OCCT_MODULES})
189189
continue()
190190
endif()
191191

192+
if((NOT USE_VTK) AND (${MOD} MATCHES "IVtk.*"))
193+
message(STATUS "Skipping vtk dependent module ${MOD}")
194+
continue()
195+
endif()
196+
192197
# Check for platform-specific modules
193198
if((WIN32 OR APPLE) AND (${MOD} STREQUAL "Xw" OR ${MOD} STREQUAL "Wayland"))
194199
message(STATUS "Skipping platform-specific module ${MOD}")

0 commit comments

Comments
 (0)