From 73d0d3b2842505554a9ce3c3bd065343bc898f97 Mon Sep 17 00:00:00 2001 From: ana Date: Tue, 20 Mar 2012 12:02:19 +0000 Subject: [PATCH] Bug IPAL22865 "Re-structurization of Partition-related packges in SALOME GEOM module" Win32 compilation --- adm_local/cmake_files/FindCAS.cmake | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/adm_local/cmake_files/FindCAS.cmake b/adm_local/cmake_files/FindCAS.cmake index 9a4a5f9ab..3d0b5e516 100644 --- a/adm_local/cmake_files/FindCAS.cmake +++ b/adm_local/cmake_files/FindCAS.cmake @@ -22,6 +22,16 @@ SET(CASROOT $ENV{CASROOT}) # SET(OCC_VERSION_MAJOR 6) # SET(OCC_VERSION_MINOR 3) # SET(OCC_VERSION_MAINTENANCE 10) +SET(OCC_VERSION_DEVELOPMENT 0) + +FIND_FILE(ff Standard_Version.hxx ${CASROOT}/include/opencascade ${CASROOT}/inc) +IF(ff) + FILE(STRINGS ${ff} OCC_VERSION_DEVELOPMENT_STR + REGEX "^ *#define OCC_VERSION_DEVELOPMENT.*$") + IF(OCC_VERSION_DEVELOPMENT_STR) + SET(OCC_VERSION_DEVELOPMENT 1) + ENDIF(OCC_VERSION_DEVELOPMENT_STR) +ENDIF(ff) SET(CAS_CPPFLAGS) # SET(CAS_CPPFLAGS ${CAS_CPPFLAGS} -DOCC_VERSION_MAJOR=${OCC_VERSION_MAJOR}) -- 2.39.2