Opened 10 months ago

Last modified 10 months ago

#68689 closed defect

CMake no longer finds OpenBLAS — at Version 1

Reported by: szhorvat (Szabolcs Horvát) Owned by:
Priority: Normal Milestone:
Component: ports Version:
Keywords: Cc: catap (Kirill A. Korinsky), barracuda156, NicosPavlov, michaelld (Michael Dickens), mascguy (Christopher Nielsen)
Port: openblas, cmake

Description (last modified by szhorvat (Szabolcs Horvát))

CMake is no longer finding OpenBLAS and I am not sure why.

I am using:

OpenBLAS @0.3.24 (math, science)
cmake @3.24.4 (devel)

Fully updated ports tree, no local modifications.

Test CMake project:

cmake_minimum_required(VERSION 3.24)
project(Foo)
find_package(BLAS REQUIRED)
message(STATUS BLAS found: ${BLAS_LIBRARIES})

Configure it with cmake -DBLA_VENDOR=OpenBLAS -DCMAKE_PREFIX_PATH=/opt/local. Then it shows the error Could NOT find BLAS (missing: BLAS_LIBRARIES)

This used to work not so long ago. I am not sure when it broke. It also affects building ports that link to OpenBLAS.

My system:

macOS 13.6 22G120 arm64 Xcode 15.0.1 15A507

Change History (1)

comment:1 Changed 10 months ago by szhorvat (Szabolcs Horvát)

Description: modified (diff)
Note: See TracTickets for help on using tickets.