Skip to content

Commit

Permalink
Replace use of VERSION_GREATER_EQUAL (CMake 3.7+) with VERSION_LESS. F…
Browse files Browse the repository at this point in the history
  • Loading branch information
paulromano authored and tdegeus committed Mar 10, 2022
1 parent d453b3c commit 751f3ae
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ set(xtl_REQUIRED_VERSION 0.7.0)
if(TARGET xtl)
set(xtl_VERSION ${XTL_VERSION_MAJOR}.${XTL_VERSION_MINOR}.${XTL_VERSION_PATCH})
# Note: This is not SEMVER compatible comparison
if( NOT ${xtl_VERSION} VERSION_GREATER_EQUAL ${xtl_REQUIRED_VERSION})
if(${xtl_VERSION} VERSION_LESS ${xtl_REQUIRED_VERSION})
message(ERROR "Mismatch xtl versions. Found '${xtl_VERSION}' but requires: '${xtl_REQUIRED_VERSION}'")
else()
message(STATUS "Found xtl v${xtl_VERSION}")
Expand Down Expand Up @@ -63,7 +63,7 @@ if(XTENSOR_USE_XSIMD)
if(TARGET xsimd)
set(xsimd_VERSION ${XSIMD_VERSION_MAJOR}.${XSIMD_VERSION_MINOR}.${XSIMD_VERSION_PATCH})
# Note: This is not SEMVER compatible comparison
if( NOT ${xsimd_VERSION} VERSION_GREATER_EQUAL ${xsimd_REQUIRED_VERSION})
if(${xsimd_VERSION} VERSION_LESS ${xsimd_REQUIRED_VERSION})
message(ERROR "Mismatch xsimd versions. Found '${xsimd_VERSION}' but requires: '${xsimd_REQUIRED_VERSION}'")
else()
message(STATUS "Found xsimd v${xsimd_VERSION}")
Expand Down

0 comments on commit 751f3ae

Please sign in to comment.