From 8dd51ec42b3de4370702e31ff7034abfd870ac61 Mon Sep 17 00:00:00 2001
From: Florent Pruvost <florent.pruvost@inria.fr>
Date: Fri, 3 Apr 2015 09:38:09 +0000
Subject: [PATCH] FindCBLAS was not calling BLASEXT component when not required

---
 cmake_modules/morse/find/FindCBLAS.cmake | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/cmake_modules/morse/find/FindCBLAS.cmake b/cmake_modules/morse/find/FindCBLAS.cmake
index c3945f718..316206d9c 100644
--- a/cmake_modules/morse/find/FindCBLAS.cmake
+++ b/cmake_modules/morse/find/FindCBLAS.cmake
@@ -104,6 +104,8 @@ if (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})
-- 
GitLab