Skip to content

Commit c78e2cb

Browse files
committed
Draw, MacOS - remove TKIVtkDraw when VTK_USE_X is OFF
1 parent 5c814b0 commit c78e2cb

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

CMakeLists.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1017,6 +1017,11 @@ foreach (OCCT_3RDPARTY_LIST ${OCCT_3RDPARTY_CMAKE_LIST})
10171017
OCCT_INCLUDE_CMAKE_FILE (${OCCT_3RDPARTY_LIST})
10181018
endforeach()
10191019

1020+
if (DEFINED VTK_USE_X AND NOT VTK_USE_X)
1021+
message (STATUS "Info: TKIVtkDraw toolkits excluded due to VTK has no glx support")
1022+
list (REMOVE_ITEM BUILD_TOOLKITS TKIVtkDraw)
1023+
endif()
1024+
10201025
if (USE_TK)
10211026
add_definitions (-DHAVE_TK)
10221027
else()

0 commit comments

Comments
 (0)