Commit 9032b0be authored by Florent Pruvost's avatar Florent Pruvost

FindCBLAS was not calling BLASEXT component when not required

parent d9a97407
......@@ -80,10 +80,14 @@ endif()
if (CBLAS_FIND_COMPONENTS)
foreach( component ${CBLAS_FIND_COMPONENTS} )
if(CBLAS_FIND_REQUIRED_${component})
if (CBLAS_FIND_REQUIRED)
find_package(${component} REQUIRED)
else()
find_package(${component})
endif()
else()
find_package(${component})
endif()
if(${component}_FOUND)
set(CBLAS_${component}_FOUND TRUE)
else()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment