8000 BLD: fix bug with CMake fallback detection of BLAS/LAPACK · numpy/numpy@02cae33 · GitHub
[go: up one dir, main page]

Skip to content

Commit 02cae33

Browse files
rgommersmattip
authored andcommitted
BLD: fix bug with CMake fallback detection of BLAS/LAPACK
1 parent cd6f0cd commit 02cae33

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

numpy/meson.build

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -198,10 +198,13 @@ foreach name, dep : dependency_map
198198
if dep.found()
199199
conf_data.set(name + '_VERSION', dep.version())
200200
conf_data.set(name + '_TYPE_NAME', dep.type_name())
201-
conf_data.set(name + '_INCLUDEDIR', dep.get_variable('includedir'))
202-
conf_data.set(name + '_LIBDIR', dep.get_variable('libdir'))
203-
conf_data.set(name + '_OPENBLAS_CONFIG', dep.get_variable('openblas_config'))
204-
conf_data.set(name + '_PCFILEDIR', dep.get_variable('pcfiledir'))
201+
if dep.type_name() == 'pkgconfig'
202+
# CMake detection yields less info, so we need to leave it blank there
203+
conf_data.set(name + '_INCLUDEDIR', dep.get_variable('includedir'))
204+
conf_data.set(name + '_LIBDIR', dep.get_variable('libdir'))
205+
conf_data.set(name + '_OPENBLAS_CONFIG', dep.get_variable('openblas_config'))
206+
conf_data.set(name + '_PCFILEDIR', dep.get_variable('pcfiledir'))
207+
endif
205208
endif
206209
endforeach
207210

0 commit comments

Comments
 (0)
0