aports/community/opencascade/drop-nonsense-from-cmake.patch
Marian Buschsieweke 0936ccae7a community/opencascade: upgrade to 7.8.0
https://github.com/Open-Cascade-SAS/OCCT/releases/tag/V7_8_0

- building against ffmpeg is still broken and, hence, remains disabled
- detecting (One)TBB is broken and disabled for now
2024-02-28 13:13:38 +00:00

24 lines
989 B
Diff

Y R U writing to /usr/bin/custom.sh from cmake?!?
Dropping this nonsense.
--- a/CMakeLists.txt 2023-12-26 09:37:59.000000000 +0100
+++ b/CMakeLists.txt 2024-02-20 09:49:16.278862864 +0100
@@ -1030,17 +1030,6 @@ else()
set (ADDITIONAL_CUSTOM_CONTENT "\nif [ -e \"\${aScriptPath}/${SUB_CUSTOM_NAME}\" ]; then\n source \"\${aScriptPath}/${SUB_CUSTOM_NAME}\" \"\$1\" \"\$2\" \nfi")
endif()
- # change custom.bat/sh
-if (EXISTS "${INSTALL_DIR}/${INSTALL_DIR_SCRIPT}/custom.${SCRIPT_EXT}")
- file (READ "${INSTALL_DIR}/${INSTALL_DIR_SCRIPT}/custom.${SCRIPT_EXT}" CUSTOM_CONTENT)
-
- set (CUSTOM_CONTENT "${CUSTOM_CONTENT} ${ADDITIONAL_CUSTOM_CONTENT}")
-
- file (WRITE "${INSTALL_DIR}/${INSTALL_DIR_SCRIPT}/custom.${SCRIPT_EXT}" "${CUSTOM_CONTENT}")
-else()
- OCCT_CONFIGURE_AND_INSTALL ("adm/templates/custom.${SCRIPT_EXT}.main" "custom.${SCRIPT_EXT}" "custom.${SCRIPT_EXT}" "${INSTALL_DIR_SCRIPT}")
-endif()
-
if (WIN32)
set (THIRDPARTY_DIR_REPLACE "%THIRDPARTY_DIR%")
else()