mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-01 14:29:00 +08:00
b5ae18f755
Fixes #38323. Fix package `hexl` not found error: ``` CMake Warning at vcpkg/scripts/buildsystems/vcpkg.cmake:859 (_find_package): Could not find a configuration file for package "HEXL" that is compatible with requested version "1.2.4". The following configuration files were considered but not accepted: vcpkg/installed/x64-linux/share/HEXL/HEXLConfig.cmake, version: 1.2.5 /usr/local/lib/cmake/hexl-1.2.5/HEXLConfig.cmake, version: 1.2.5 Call Stack (most recent call first): CMakeLists.txt:226 (find_package) CMake Error at CMakeLists.txt:228 (message): Intel HEXL: not found ``` Feature `hexl` is tested successfully in the following triplet: ``` x64-windows x64-windows-static ``` - [x] Changes comply with the [maintainer guide](https://github.com/microsoft/vcpkg-docs/blob/main/vcpkg/contributing/maintainer-guide.md). - [ ] ~SHA512s are updated for each updated download.~ - [ ] ~The "supports" clause reflects platforms that may be fixed by this new version.~ - [ ] ~Any fixed [CI baseline](https://github.com/microsoft/vcpkg/blob/master/scripts/ci.baseline.txt) entries are removed from that file.~ - [ ] ~Any patches that are no longer applied are deleted from the port's directory.~ - [x] The version database is fixed by rerunning `./vcpkg x-add-version --all` and committing the result. - [x] Only one version is added to each modified port's versions file. --------- Co-authored-by: Monica <v-liumonica@microsoft.com>
14 lines
472 B
Diff
14 lines
472 B
Diff
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
|
index edf69a3..e64672e 100644
|
|
--- a/CMakeLists.txt
|
|
+++ b/CMakeLists.txt
|
|
@@ -223,7 +223,7 @@ if(SEAL_USE_INTEL_HEXL)
|
|
message(STATUS "Intel HEXL: download ...")
|
|
seal_fetch_thirdparty_content(ExternalIntelHEXL)
|
|
else()
|
|
- find_package(HEXL 1.2.4)
|
|
+ find_package(HEXL CONFIG REQUIRED)
|
|
if (NOT TARGET HEXL::hexl)
|
|
message(FATAL_ERROR "Intel HEXL: not found")
|
|
endif()
|