DiscussionsIssue archiveOCCT:Configuration

Archived issue #0032808

Configuration, CMake - cmake installs custom.sh during configuration step

Open CASCADEOCCT:Configurationnew0 public notes

Search issues

Description

Configuring step should be responsible for configuration only, no actual installation should be during it. Imagine the following scenario:
1. build and install OCCT to the default folder ( usr/lib for example)
2. when you want to update OCCT, you start configuring.
3. before you install a new version the currently installed version is broken.

Around line 980:

# 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()
  OCCT_CONFIGURE_AND_INSTALL ("adm/templates/custom.${SCRIPT_EXT}.main" "custom.${SCRIPT_EXT}" "custom.${SCRIPT_EXT}" "${INSTALL_DIR_SCRIPT}")
endif()

Public activity

No public notes

Participants are labeled by their role within this record.

Related records