nix build script add occt 7.9.1 patch

This commit is contained in:
Thomas Krijnen
2025-10-03 18:05:39 +02:00
parent ca3685900f
commit d58dae5d2f
2 changed files with 19 additions and 0 deletions
+6
View File
@@ -344,6 +344,12 @@ PIC = "-fPIC" if BUILD_STATIC else ""
if any(f.startswith("py-") for f in flags): if any(f.startswith("py-") for f in flags):
PYTHON_VERSIONS = [pyv for pyv in PYTHON_VERSIONS if f"py-{''.join(pyv.split('.')[:2])}" in flags] PYTHON_VERSIONS = [pyv for pyv in PYTHON_VERSIONS if f"py-{''.join(pyv.split('.')[:2])}" in flags]
if any(f.startswith("occt-") for f in flags):
OCCT_VERSION = next(f.split('-', 1)[1] for f in flags if f.startswith("occt-"))
print(OCCT_VERSION)
exit()
if explicit_targets: if explicit_targets:
targets = {dep for target in explicit_targets for dep in gather_dependencies(target)} targets = {dep for target in explicit_targets for dep in gather_dependencies(target)}
else: else:
@@ -0,0 +1,13 @@
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 34300d41ad..09b2e0d45f 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -721,6 +721,8 @@ else()
OCCT_CHECK_AND_UNSET ("3RDPARTY_DOT_EXECUTABLE")
endif()
+list (REMOVE_ITEM BUILD_TOOLKITS ExpToCasExe)
+
# bison
if (BUILD_YACCLEX)
list (APPEND OCCT_3RDPARTY_CMAKE_LIST "adm/cmake/bison")