]> 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)
committerdpasukhi <dpasukhi@opencascade.com>
Sat, 6 Sep 2025 19:55:01 +0000 (20:55 +0100)
Include occt_csf file to define CSF variable before usage.

CMakeLists.txt

index 34300d41adc25a7653dc053c777d801beba9d458..6f0654484f57f191194ed8a42dd1324492aed013 100644 (file)
@@ -476,6 +476,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")
@@ -771,9 +774,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)