mirror of
https://gitlab.kitware.com/cmake/cmake.git
synced 2026-10-08 23:44:00 +03:00
FindBLAS: Fix search for ACML when not in fallback paths
Avoid indexing an empty list. Fixes: #27141
This commit is contained in:
1 parent
69949719c8
commit
a1fa0a3f23
1 file changed
+2
-2
@@ -1122,9 +1122,9 @@ if(BLA_VENDOR MATCHES "ACML" OR BLA_VENDOR STREQUAL "All")
|
||||
else()
|
||||
file(GLOB _ACML_GPU_ROOT "/opt/acml*/GPGPUexamples")
|
||||
endif()
|
||||
list(GET _ACML_ROOT 0 _ACML_ROOT)
|
||||
list(GET _ACML_GPU_ROOT 0 _ACML_GPU_ROOT)
|
||||
if(_ACML_ROOT)
|
||||
list(GET _ACML_ROOT 0 _ACML_ROOT)
|
||||
list(GET _ACML_GPU_ROOT 0 _ACML_GPU_ROOT)
|
||||
get_filename_component(_ACML_ROOT ${_ACML_ROOT} PATH)
|
||||
if(_blas_sizeof_integer EQUAL 8)
|
||||
set(_ACML_PATH_SUFFIX "_int64")
|
||||
|
||||
Reference in new issue
Block a user