From: blobfish Date: Sat, 2 Mar 2024 10:13:48 +0000 (+0000) Subject: [PATCH 1/7] cmake: Don't try to write to install directory. You know, permissions... X-Git-Tag: archive/raspbian/7.8.1+dfsg1-2+rpi1^2^2~8 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=9ceb4dfb3ec7e3d07b9100c569368208265c252b;p=opencascade.git [PATCH 1/7] cmake: Don't try to write to install directory. You know, permissions and all Gbp-Pq: Name 0001-cmake-Don-t-try-to-write-to-install-directory.-You-k.patch --- diff --git a/CMakeLists.txt b/CMakeLists.txt index 8c510c917..6a034d106 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -987,15 +987,15 @@ else() 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() +# 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() +# endif() if (WIN32) set (THIRDPARTY_DIR_REPLACE "%THIRDPARTY_DIR%")