From: dpasukhi Date: Sun, 15 Dec 2024 15:37:37 +0000 (+0000) Subject: Configuration - Inspector with SymLink error #198 X-Git-Tag: V7_9_0_beta1~94 X-Git-Url: http://git.dev.opencascade.org/gitweb/?a=commitdiff_plain;h=73dcda743b5d0cc760949cbb6b7427c681e74f26;p=occt.git Configuration - Inspector with SymLink error #198 When configure Inspector with Symlink flag - configuration failed. Added force creating include folder to symlink creating. --- diff --git a/CMakeLists.txt b/CMakeLists.txt index 1b03e226a1..a0873f66ba 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -965,6 +965,10 @@ if (BUILD_Inspector) endforeach() # collect all the headers to /inc/inspector folder + + # Ensure the include directory exists + file(MAKE_DIRECTORY "${CMAKE_BINARY_DIR}/${INSTALL_DIR_INCLUDE}/inspector") + string(TIMESTAMP CURRENT_TIME "%H:%M:%S") message (STATUS "\nInfo: \(${CURRENT_TIME}\) Start collecting all OCCT tool header files into ${CMAKE_BINARY_DIR}/inc/inspector ...") COLLECT_AND_INSTALL_OCCT_HEADER_FILES ("${CMAKE_BINARY_DIR}" "${BUILD_TOOL_TOOLKITS}" "tools" "${INSTALL_DIR_INCLUDE}/inspector") diff --git a/tools/CMakeLists.txt b/tools/CMakeLists.txt index 881717cd85..92977d362d 100644 --- a/tools/CMakeLists.txt +++ b/tools/CMakeLists.txt @@ -343,6 +343,10 @@ foreach (OCCT_TOOL ${OCCT_TOOLS}) endforeach() # collect all the headers to /inc/inspector folder + +# Ensure the include directory exists +file(MAKE_DIRECTORY "${CMAKE_BINARY_DIR}/${INSTALL_DIR_INCLUDE}/inspector") + string(TIMESTAMP CURRENT_TIME "%H:%M:%S") message (STATUS "\nInfo: \(${CURRENT_TIME}\) Start collecting all OCCT tool header files into ${CMAKE_BINARY_DIR}/inc/inspector ...") COLLECT_AND_INSTALL_OCCT_HEADER_FILES ("${CMAKE_BINARY_DIR}" "${BUILD_TOOL_TOOLKITS}" "tools" "${INSTALL_DIR_INCLUDE}/inspector")