Skip to content

Commit ca470eb

Browse files
authored
Fix HEXL version comparison
2 parents e64817d + e431dfd commit ca470eb

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
@@ -216,10 +216,10 @@ if(USE_INTEL_HEXL)
216216
find_package(HEXL HINTS ${HEXL_DIR} REQUIRED)
217217

218218
# Check the version found is greater than the minimum
219-
if(HEXL_MIN_VERSION GREATER HEXL_VERSION)
219+
if(HEXL_MIN_VERSION VERSION_GREATER HEXL_VERSION)
220220
message(FATAL_ERROR "Minimum Intel HEXL version required is ${HEXL_MIN_VERSION}, found ${HEXL_VERSION}")
221221
else()
222-
message("-- Intel HEXL Version: ${HEXL_VERSION} found (minimum required is ${HEXL_MIN_VERSION})")
222+
message(STATUS "Intel HEXL Version: ${HEXL_VERSION} found (minimum required is ${HEXL_MIN_VERSION})")
223223
endif()
224224

225225
if(INIT_HEXL_DIR AND NOT INIT_HEXL_DIR STREQUAL HEXL_DIR)

0 commit comments

Comments
 (0)