[go: nahoru, domu]

Skip to content

Commit

Permalink
HEXL minimum version 1.2.1
Browse files Browse the repository at this point in the history
* Enforce minimum version of Intel HEXL
* Change HEXL minimum version to 1.2.1

Co-authored-by: Flavio Bergamaschi <flavio@intel.com>
  • Loading branch information
jlhcrawford and faberga committed Sep 1, 2021
1 parent ba8cf90 commit 11f516c
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,19 @@ if(USE_INTEL_HEXL)
)
set(INIT_HEXL_DIR ${HEXL_DIR})
endif()
find_package(HEXL 1.2.1 HINTS ${HEXL_DIR} REQUIRED)

# Set minimum version of HEXL
set(HEXL_MIN_VERSION 1.2.1)

find_package(HEXL HINTS ${HEXL_DIR} REQUIRED)

# Check the version found is greater than the minimum
if(HEXL_MIN_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})")
endif()

if(INIT_HEXL_DIR AND NOT INIT_HEXL_DIR STREQUAL HEXL_DIR)
message(WARNING "HEXL location provided '${INIT_HEXL_DIR}' \
does not equal chosen '${HEXL_DIR}'.")
Expand Down

0 comments on commit 11f516c

Please sign in to comment.