From e431dfd3e8b5dcccb54c497c416f23489b282547 Mon Sep 17 00:00:00 2001 From: Jack Crawford Date: Wed, 8 Sep 2021 16:01:38 +0100 Subject: [PATCH] Fix HEXL version comparison --- CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 8b35650f6..6a5de0a0f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -216,10 +216,10 @@ if(USE_INTEL_HEXL) find_package(HEXL HINTS ${HEXL_DIR} REQUIRED) # Check the version found is greater than the minimum - if(HEXL_MIN_VERSION GREATER HEXL_VERSION) + if(HEXL_MIN_VERSION VERSION_GREATER HEXL_VERSION) message(FATAL_ERROR "Minimum Intel HEXL version required is ${HEXL_MIN_VERSION}, found ${HEXL_VERSION}") else() - message("-- Intel HEXL Version: ${HEXL_VERSION} found (minimum required is ${HEXL_MIN_VERSION})") + message(STATUS "Intel HEXL Version: ${HEXL_VERSION} found (minimum required is ${HEXL_MIN_VERSION})") endif() if(INIT_HEXL_DIR AND NOT INIT_HEXL_DIR STREQUAL HEXL_DIR)