浏览代码

FindBLAS: simplify if()

Rolf Eike Beer 8 年之前
父节点
当前提交
c095e2ad54
共有 1 个文件被更改,包括 1 次插入2 次删除
  1. 1 2
      Modules/FindBLAS.cmake

+ 1 - 2
Modules/FindBLAS.cmake

@@ -661,8 +661,7 @@ if (BLA_VENDOR MATCHES "Intel" OR BLA_VENDOR STREQUAL "All")
 
   foreach (IT ${BLAS_SEARCH_LIBS})
     string(REPLACE " " ";" SEARCH_LIBS ${IT})
-    if (${_LIBRARIES})
-    else ()
+    if (NOT ${_LIBRARIES})
       check_fortran_libraries(
         ${_LIBRARIES}
         BLAS