From: blobfish Date: Tue, 23 May 2023 07:45:56 +0000 (+0100) Subject: [PATCH 1/7] cmake: Don't try to write to install directory. You know, permissions... X-Git-Tag: archive/raspbian/7.6.3+dfsg1-7+rpi1^2~8 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=5303e3d4598ba438c3d189fae2364506b7685f76;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%")