]> OCCT Git - occt.git/commitdiff
Configuration - Fixed issue with CSF variable overwriting #561
authorPasukhin Dmitry <dpasukhi@opencascade.com>
Sat, 24 May 2025 11:27:14 +0000 (12:27 +0100)
committerGitHub <noreply@github.com>
Sat, 24 May 2025 11:27:14 +0000 (12:27 +0100)
Include occt_csf file to define CSF variable before usage.

CMakeLists.txt

index 52353352356d92eab48d60872f1758a9d4070781..29112db008aa94a7d0312a4c937b9183d9e10d35 100644 (file)
@@ -484,6 +484,9 @@ OCCT_IS_PRODUCT_REQUIRED (CSF_EIGEN CAN_USE_EIGEN)
 
 set (OCCT_3RDPARTY_CMAKE_LIST)
 
+# define CSF variable
+OCCT_INCLUDE_CMAKE_FILE ("adm/cmake/occt_csf")
+
 # Tcl (mandatory for Draw Harness)
 if (USE_TCL)
   message (STATUS "Info: TCL is used by OCCT")
@@ -779,9 +782,6 @@ file(COPY ${CMAKE_SOURCE_DIR}/.clang-format DESTINATION ${CMAKE_SOURCE_DIR})
 OCCT_MAKE_OS_WITH_BITNESS()
 OCCT_MAKE_COMPILER_SHORT_NAME()
 
-# define CSF variable
-OCCT_INCLUDE_CMAKE_FILE ("adm/cmake/occt_csf")
-
 # do not define INSTALL_DIR_BIN for win.
 # Leave library structure for win: <prefix>/win64/vc10/bin(d)
 if (NOT DEFINED INSTALL_DIR_BIN)