# SET(OCC_VERSION_MAJOR 6)
# SET(OCC_VERSION_MINOR 3)
# SET(OCC_VERSION_MAINTENANCE 10)
-SET(OCC_VERSION_DEVELOPMENT 0)
+SET(CAS_VERSION_DEVELOPMENT 0)
FIND_FILE(ff Standard_Version.hxx)
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)
+ FILE(STRINGS ${ff} CAS_VERSION_DEVELOPMENT_STR
+ REGEX "^ *#define OCC_VERSION_DEVELOPMENT *\"dev\".*$")
+ IF(CAS_VERSION_DEVELOPMENT_STR)
+ SET(CAS_VERSION_DEVELOPMENT 1)
+ ENDIF(CAS_VERSION_DEVELOPMENT_STR)
ENDIF(ff)
SET(CAS_DEFINITIONS "-DLIN -DLINTEL -DCSFDB")
SET(CAS_DEFINITIONS "${CAS_DEFINITIONS} -D_OCC64")
ENDIF(CMAKE_SIZEOF_VOID_P STREQUAL 8)
+IF(CAS_VERSION_DEVELOPMENT STREQUAL 1)
+ SET(CAS_DEFINITIONS "${CAS_DEFINITIONS} -DCAS_VERSION_DEVELOPMENT")
+ENDIF(CAS_VERSION_DEVELOPMENT STREQUAL 1)
+
IF(NOT WINDOWS)
FIND_LIBRARY(CAS_Xmu Xmu)
IF(Xmu)
# SET(OCC_VERSION_MAJOR 6)
# SET(OCC_VERSION_MINOR 3)
# SET(OCC_VERSION_MAINTENANCE 10)
-SET(OCC_VERSION_DEVELOPMENT 0)
+SET(CAS_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)
+ FILE(STRINGS ${ff} CAS_VERSION_DEVELOPMENT_STR
+ REGEX "^ *#define OCC_VERSION_DEVELOPMENT *\"dev\".*$")
+ IF(CAS_VERSION_DEVELOPMENT_STR)
+ SET(CAS_VERSION_DEVELOPMENT 1)
+ ENDIF(CAS_VERSION_DEVELOPMENT_STR)
ENDIF(ff)
SET(CAS_CPPFLAGS)
SET(CAS_CPPFLAGS ${CAS_CPPFLAGS} -D_OCC64)
ENDIF(CMAKE_SIZEOF_VOID_P STREQUAL 8)
+IF(CAS_VERSION_DEVELOPMENT STREQUAL 1)
+ SET(CAS_CPPFLAGS "${CAS_CPPFLAGS} -DCAS_VERSION_DEVELOPMENT")
+ENDIF(CAS_VERSION_DEVELOPMENT STREQUAL 1)
+
IF(NOT WINDOWS)
FIND_LIBRARY(Xmu Xmu)
IF(Xmu)