summarylogtreecommitdiffstats
path: root/0004-fix-opencascade-version-check.patch
blob: 2fa784a0005df4ffb2994f2c89183efa84ed6a80 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
https://github.com/supermerill/SuperSlicer/issues/3912#issuecomment-1675135988

--- src/occt_wrapper/CMakeLists.txt.bak	2024-11-20 13:23:45.624527309 +0100
+++ src/occt_wrapper/CMakeLists.txt	2024-11-20 13:23:56.347478724 +0100
@@ -19,7 +19,12 @@
 
 generate_export_header(OCCTWrapper)
 
-find_package(OpenCASCADE 7.6.2 REQUIRED)
+find_package(OpenCASCADE REQUIRED)
+if (OpenCASCADE_VERSION VERSION_LESS 7.6.2)
+    message(FATAL_ERROR "OpenCASCADE v7 >= v7.6.2 must be used")
+elseif (OpenCASCADE_VERSION VERSION_GREATER_EQUAL 8.0.0)
+    message(FATAL_ERROR "OpenCASCADE v7 >= v7.6.2 must be used")
+endif ()
 
 set(OCCT_LIBS
     TKXDESTEP