]> OCCT Git - occt.git/commitdiff
Configuration - Inspector with SymLink error #198
authordpasukhi <dpasukhi@opencascade.com>
Sun, 15 Dec 2024 15:37:37 +0000 (15:37 +0000)
committerdpasukhi <dpasukhi@opencascade.com>
Sun, 15 Dec 2024 15:37:37 +0000 (15:37 +0000)
When configure Inspector with Symlink flag - configuration failed.
Added force creating include folder to symlink creating.

CMakeLists.txt
tools/CMakeLists.txt

index 1b03e226a169ab096f0bf5d7aa77ee9a05be1281..a0873f66baf84c2933e0f9d62221a827d9c7d26e 100644 (file)
@@ -965,6 +965,10 @@ if (BUILD_Inspector)
   endforeach()
 
   # collect all the headers to <binary dir>/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")
index 881717cd859bbc1db6fb4725eff0c5e35e0883eb..92977d362dca5f1aec3fd70d7e44e05fbb193b4d 100644 (file)
@@ -343,6 +343,10 @@ foreach (OCCT_TOOL ${OCCT_TOOLS})
 endforeach()
 
 # collect all the headers to <binary dir>/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")