Skip to content

Commit 751f3ae

Browse files
paulromanotdegeus
authored andcommitted
Replace use of VERSION_GREATER_EQUAL (CMake 3.7+) with VERSION_LESS. Fixes #2478
1 parent d453b3c commit 751f3ae

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ set(xtl_REQUIRED_VERSION 0.7.0)
3333
if(TARGET xtl)
3434
set(xtl_VERSION ${XTL_VERSION_MAJOR}.${XTL_VERSION_MINOR}.${XTL_VERSION_PATCH})
3535
# Note: This is not SEMVER compatible comparison
36-
if( NOT ${xtl_VERSION} VERSION_GREATER_EQUAL ${xtl_REQUIRED_VERSION})
36+
if(${xtl_VERSION} VERSION_LESS ${xtl_REQUIRED_VERSION})
3737
message(ERROR "Mismatch xtl versions. Found '${xtl_VERSION}' but requires: '${xtl_REQUIRED_VERSION}'")
3838
else()
3939
message(STATUS "Found xtl v${xtl_VERSION}")
@@ -63,7 +63,7 @@ if(XTENSOR_USE_XSIMD)
6363
if(TARGET xsimd)
6464
set(xsimd_VERSION ${XSIMD_VERSION_MAJOR}.${XSIMD_VERSION_MINOR}.${XSIMD_VERSION_PATCH})
6565
# Note: This is not SEMVER compatible comparison
66-
if( NOT ${xsimd_VERSION} VERSION_GREATER_EQUAL ${xsimd_REQUIRED_VERSION})
66+
if(${xsimd_VERSION} VERSION_LESS ${xsimd_REQUIRED_VERSION})
6767
message(ERROR "Mismatch xsimd versions. Found '${xsimd_VERSION}' but requires: '${xsimd_REQUIRED_VERSION}'")
6868
else()
6969
message(STATUS "Found xsimd v${xsimd_VERSION}")

0 commit comments

Comments
 (0)