Skip to content

Commit

Permalink
Fix HEXL version comparison
Browse files Browse the repository at this point in the history
  • Loading branch information
jlhcrawford authored Sep 8, 2021
1 parent 0f21f50 commit e431dfd
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 @@ -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)
Expand Down

0 comments on commit e431dfd

Please sign in to comment.