mirror of https://github.com/CGAL/cgal
updated RS-use script, to allow old versions of RS to be used
This commit is contained in:
parent
9ce6a37bd0
commit
a5582e7d96
|
|
@ -48,12 +48,20 @@ if( NOT CGAL_RS_SETUP )
|
|||
STRING(REGEX REPLACE ".*#define[ \t]+rs_minor[ \t]+([0-9]+).*"
|
||||
"\\1" RS3_MINOR "${_rsversion_h_CONTENTS}")
|
||||
SET( RS3_LIB_VERSION "${RS3_MAJOR}.${RS3_MIDDLE}.${RS3_MINOR}" )
|
||||
IS_VERSION_LESS( "${RS3_MAJOR}.${RS3_MIDDLE}" "3.1" RS_OLD_INCLUDES )
|
||||
else( EXISTS "${RS3_INCLUDE_DIR}/rsversion.h" )
|
||||
# rsversion.h did not exist in old versions
|
||||
SET( RS3_LIB_VERSION "unknown" )
|
||||
SET( RS_OLD_INCLUDES TRUE )
|
||||
endif( EXISTS "${RS3_INCLUDE_DIR}/rsversion.h" )
|
||||
|
||||
message( STATUS "RS version is ${RS3_LIB_VERSION}" )
|
||||
|
||||
if( RS_OLD_INCLUDES )
|
||||
add_definitions( "-DCGAL_RS_OLD_INCLUDES" )
|
||||
message( STATUS "Using old RS signatures" )
|
||||
endif( RS_OLD_INCLUDES )
|
||||
|
||||
endif( RS3_FOUND )
|
||||
|
||||
endif( RS_FOUND )
|
||||
|
|
|
|||
Loading…
Reference in New Issue