File orca-slicer-newer-opencascade.patch of Package orca-slicer

From 9e2059d76706298c1cac1412c9c51569a992297b Mon Sep 17 00:00:00 2001
From: Oleg Girko <ol@infoserver.lv>
Date: Thu, 12 Dec 2024 02:36:00 +0000
Subject: [PATCH] Update OpenCASCADE to version 7.8.0.

Some libraries have changed their names.

Signed-off-by: Oleg Girko <ol@infoserver.lv>
---
 src/libslic3r/CMakeLists.txt | 8 ++------
 1 file changed, 2 insertions(+), 6 deletions(-)

diff --git a/src/libslic3r/CMakeLists.txt b/src/libslic3r/CMakeLists.txt
index 39f0c50b3..0bfae5d86 100644
--- a/src/libslic3r/CMakeLists.txt
+++ b/src/libslic3r/CMakeLists.txt
@@ -519,17 +519,13 @@ target_include_directories(libslic3r PUBLIC ${EXPAT_INCLUDE_DIRS})
 
 # Find the OCCT and related libraries
 set(OpenCASCADE_DIR "${CMAKE_PREFIX_PATH}/lib/cmake/occt")
-find_package(OpenCASCADE REQUIRED)
+find_package(OpenCASCADE 7.8.0 REQUIRED)
 target_include_directories(libslic3r PUBLIC ${OpenCASCADE_INCLUDE_DIR})
 
 find_package(JPEG REQUIRED)
 
 set(OCCT_LIBS
-    TKXDESTEP
-    TKSTEP
-    TKSTEP209
-    TKSTEPAttr
-    TKSTEPBase
+    TKDESTEP
     TKXCAF
     TKXSBase
     TKVCAF
-- 
2.47.1