Files
nixpkgs/pkgs/by-name/op/opencascade-occt/vtk-draw-conditional-glx.patch

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

15 lines
544 B
Diff
Raw Permalink Normal View History

2025-10-09 14:15:47 +02:00
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 86905287dc..19214e8f2d 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -623,5 +623,9 @@ if (USE_VTK)
add_definitions (-DHAVE_VTK)
set (OCCT_VTK_USED_TARGETS "" CACHE INTERNAL "" FORCE)
OCCT_INCLUDE_CMAKE_FILE ("adm/cmake/vtk")
+ if (DEFINED VTK_USE_X AND NOT VTK_USE_X)
+ message (STATUS "Info: TKIVtkDraw toolkits excluded due to VTK has no glx support")
+ list (REMOVE_ITEM BUILD_TOOLKITS TKIVtkDraw)
+ endif()
else()
OCCT_CHECK_AND_UNSET_GROUP ("3RDPARTY_VTK")