]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
Bug IPAL22865 "Re-structurization of Partition-related packges in SALOME GEOM module"
authorana <ana@opencascade.com>
Tue, 20 Mar 2012 12:02:19 +0000 (12:02 +0000)
committerana <ana@opencascade.com>
Tue, 20 Mar 2012 12:02:19 +0000 (12:02 +0000)
Win32 compilation

adm_local/cmake_files/FindCAS.cmake

index 9a4a5f9abf20f13634df854dfa45981a52e1fa39..3d0b5e516490aa078c1aad54f7d9654c5172e406 100644 (file)
@@ -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})