![](/img/trans.png)
[英]CMake error while configuring llvm14.0.6 source code on Windows-10
[英]Windows 10, VS 2013: Cmake error while configuring OpenCL program
我正在嘗試在Windows中構建這個Github項目 。 得到下面的錯誤。 我已經安裝了AMD SDK,並將路徑添加到PATH變量。 請讓我知道如何解決此問題。
CMake Error at CMakeLists.txt:94 (find_package):
By not providing "FindOpenCL.cmake" in CMAKE_MODULE_PATH this project has
asked CMake to find a package configuration file provided by "OpenCL", but
CMake did not find one.
Could not find a package configuration file provided by "OpenCL" with any
of the following names:
OpenCLConfig.cmake
opencl-config.cmake
Add the installation prefix of "OpenCL" to CMAKE_PREFIX_PATH or set
"OpenCL_DIR" to a directory containing one of the above files. If "OpenCL"
provides a separate development package or SDK, be sure it has been
installed.
-- Configuring incomplete, errors occurred!
根據文檔,CMake從3.1版開始提供FindOpenCL.cmake
模塊。 因此,至少需要CMake 3.1才能構建給定的項目。
實際上,應該由項目的cmake_minimum_required
提供正確的約束。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.