Use VERSION_LESS instead of STRLESS
The version comparison routines were added in cmake 2.8.0
This commit is contained in:
parent
049aa4ef3e
commit
767a1a2af5
|
@ -24,10 +24,10 @@ if ( NOT ASSIMP_FOUND )
|
||||||
endif()
|
endif()
|
||||||
endif()
|
endif()
|
||||||
if( ASSIMP_FOUND )
|
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)
|
add_definitions(-DASSIMP_UNIFIED_HEADER_NAMES)
|
||||||
endif()
|
endif()
|
||||||
if( NOT ${ASSIMP_VERSION} STRLESS "2.0.885" )
|
if( NOT ${ASSIMP_VERSION} VERSION_LESS "2.0.885" )
|
||||||
add_definitions(-DASSIMP_EXPORT_API)
|
add_definitions(-DASSIMP_EXPORT_API)
|
||||||
endif()
|
endif()
|
||||||
include_directories(${ASSIMP_INCLUDE_DIRS})
|
include_directories(${ASSIMP_INCLUDE_DIRS})
|
||||||
|
|
Loading…
Reference in New Issue