Skip to content

Commit 458892a

Browse files
committed
Added version check
1 parent a43a95e commit 458892a

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

CMakeLists.txt

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,13 @@ if (NOT TARGET xtl)
8686
endif ()
8787
if (NOT TARGET xeus AND NOT TARGET xeus-static)
8888
find_package(xeus REQUIRED)
89+
if (xeus_FOUND)
90+
if (xeus_VERSION VERSION_LESS xeus_REQUIRED_VERSION)
91+
message(FATAL_ERROR "xeus version must be >= ${xeus_REQUIRED_VERSION}, found: ${xeus_VERSION}")
92+
else ()
93+
message(STATUS "Found compatible xeus version: ${xeus_VERSION}")
94+
endif ()
95+
endif()
8996
endif ()
9097

9198
# Flags

0 commit comments

Comments
 (0)