From: blobfish Date: Tue, 29 Sep 2020 10:24:25 +0000 (-0400) Subject: [PATCH 1/7] cmake: Don't try to write to install directory. You know, permissions... X-Git-Tag: archive/raspbian/7.5.0+dfsg1-4+rpi1^2~7 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=cc45cd600cdf32c5634600aeaac3fd449a3351fb;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%")