19 lines
643 B
Diff
19 lines
643 B
Diff
|
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
|