From: blobfish Date: Fri, 24 May 2024 17:00:24 +0000 (+0200) 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~9 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=e1a29ab74a8f0f7827b1bcd628632bf605dc5535;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 318ed2450..8ee16abb5 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1037,15 +1037,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%")