

I am using the openblas-0.3.23-圆4.zip from Release OpenBLAS 0.3. CMake is a cross-platform build-generator tool.

For example you might want to change from a debug build into a release build. The module is considered not found due to BLAS_FOUND being FALSE.ĬMake Warning at CMakeLists.txt:238 (message): Often you want to change the settings of your build after it has been generated. (Where build is your build directory path.) Share. So, from your project's root, you can do: cmake -Bbuild -H. /OpenBLAS causes CMake to search at the right location: CMake Debug Log at C:/Users/CountZero/miniconda3/Lib/site-packages/cmake/data/share/cmake-3.26/Modules/FindBLAS.cmake:343 (find_library):Ĭ:/absolute/path/to/OpenBLAS/lib/()openblas(\.lib)Ĭ:/absolute/path/to/OpenBLAS/()openblas(\.lib)īut CMake still fails to “find” the OpenBLAS library: ĬMake Debug Log at CMakeLists.txt:181 (find_package):įind_package considered the following paths for FindBLAS.cmake:Ĭ:/Users/CountZero/miniconda3/Lib/site-packages/cmake/data/share/cmake-3.26/Modules/FindBLAS.cmake You can use the undocumented command line options -B and -H to specify your build directory and source directory respectively. Is this a bug of CMake? Is there a Yes, setting the BLAS_ROOT variable to. Could NOT find BLAS (missing: BLAS_LIBRARIES) CMake Debug Log at C:/Users/CountZero/miniconda3/Lib/site-packages/cmake/data/share/cmake-3.26/Modules/FindBLAS.cmake:343 (find_library):įind_library called with the following settings:ĬMAKE_FIND_USE_SYSTEM_ENVIRONMENT_PATH: 1įind_library considered the following locations:Ĭ:/Users/CountZero/miniconda3/Lib/site-packages/cmake/data/share/cmake-3.26/Modules/FindBLAS.cmake:775 (check_blas_libraries)

See llama.cpp/CMakeLists.txt at master-0be54f7 The file C:/llama.cpp/build/OpenBLAS/lib/libopenblas.lib does exist and the find_library method location should match. Unpack the fOpenBLAS-0.3.23-圆4.zipf inside the projects.
#USING CMAKE BUILD DIRECTORY WINDOWS#
But on Windows I am running into a problem with CMake: The find_package(BLAS) invocation does not find OpenBLAS. I am using the llama.cpp project to evaluate LLMs.
