Use VERSION_LESS instead of STRLESS

The version comparison routines were added in cmake 2.8.0
This commit is contained in:
Scott K Logan 2014-02-06 00:02:22 -07:00
parent 049aa4ef3e
commit 767a1a2af5
1 changed files with 2 additions and 2 deletions

View File

@ -24,10 +24,10 @@ if ( NOT ASSIMP_FOUND )
endif()
endif()
if( ASSIMP_FOUND )
if( NOT ${ASSIMP_VERSION} STRLESS "2.0.1150" )
if( NOT ${ASSIMP_VERSION} VERSION_LESS "2.0.1150" )
add_definitions(-DASSIMP_UNIFIED_HEADER_NAMES)
endif()
if( NOT ${ASSIMP_VERSION} STRLESS "2.0.885" )
if( NOT ${ASSIMP_VERSION} VERSION_LESS "2.0.885" )
add_definitions(-DASSIMP_EXPORT_API)
endif()
include_directories(${ASSIMP_INCLUDE_DIRS})