From bfaff2075c1edc5621f93845d6a69e9a5ae06350 Mon Sep 17 00:00:00 2001 From: Philippe Canal Date: Fri, 17 Jan 2025 23:57:01 +0000 Subject: [PATCH] build: Fix handling of missing BLAS. 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. --- cmake/modules/SearchInstalledSoftware.cmake | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cmake/modules/SearchInstalledSoftware.cmake b/cmake/modules/SearchInstalledSoftware.cmake index 352cee7f6bcf4..fffa6f477aede 100644 --- a/cmake/modules/SearchInstalledSoftware.cmake +++ b/cmake/modules/SearchInstalledSoftware.cmake @@ -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)