From 73dcda743b5d0cc760949cbb6b7427c681e74f26 Mon Sep 17 00:00:00 2001 From: dpasukhi Date: Sun, 15 Dec 2024 15:37:37 +0000 Subject: [PATCH] Configuration - Inspector with SymLink error #198 When configure Inspector with Symlink flag - configuration failed. Added force creating include folder to symlink creating. --- CMakeLists.txt | 4 ++++ tools/CMakeLists.txt | 4 ++++ 2 files changed, 8 insertions(+) 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")