Skip to content

Commit

Permalink
build: Fix handling of missing BLAS.
Browse files Browse the repository at this point in the history
find_package for BLAS set BLAS_LIBRARY to a literal FALSE.  As used further in the ROOT cmake files
this lead to a link line for a couple of sofie test containing .  However the value is not
cached and thus after a second configuration the problem went away.
  • Loading branch information
pcanal committed Jan 20, 2025
1 parent ce5f87d commit 61da0d9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cmake/modules/SearchInstalledSoftware.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -1643,6 +1643,9 @@ if(tmva)
else()
set(tmva-cpu OFF CACHE BOOL "Disabled because BLAS was not found (${tmva-cpu_description})" FORCE)
endif()
set(BLAS_LIBRARIES) # find package set this variable to a literal FALSE when not found.
else()
set(BLAS_LIBRARIES BLAS::BLAS)
endif()
else()
set(tmva-cpu OFF CACHE BOOL "Disabled because 'imt' is disabled (${tmva-cpu_description})" FORCE)
Expand Down

0 comments on commit 61da0d9

Please sign in to comment.