From: blobfish Date: Mon, 8 Feb 2021 00:02:09 +0000 (+0000) Subject: [PATCH 1/7] cmake: Don't try to write to install directory. You know, permissions... X-Git-Tag: archive/raspbian/7.5.1+dfsg1-2+rpi1^2~8 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=cf1a9f39db439e71f47c39de4b5607f00894fa45;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 68d9e00e3..e7737429f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -915,15 +915,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%")