commit bbf8bb1: cmake: Unify ENABLE_OPENBLAS and ENABLE_BLAS

Petr Vaněk pv at excello.cz
Tue Nov 26 18:28:06 UTC 2019


Author: Petr Vaněk
Date: 2019-11-26 19:16:12 +0100
URL: https://github.com/rspamd/rspamd/commit/bbf8bb172d168f16cc90264af1da1f32a42890c3 (refs/pull/3166/head)

cmake: Unify ENABLE_OPENBLAS and ENABLE_BLAS
ENABLE_OPENBLAS is removed because it was not used to check if the
openblas library should be used. The ENABLE_BLAS is moved from
CMakeLists.txt to cmake/Openblas.cmake to have all related variables in
one file and to reduce a complexity of CMakeLists.txt slightly.

---
 CMakeLists.txt       | 1 -
 cmake/Openblas.cmake | 2 +-
 2 files changed, 1 insertion(+), 2 deletions(-)

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 841ac0a5d..7cd5ef398 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -54,7 +54,6 @@ OPTION(ENABLE_UTILS        "Build rspamd internal utils [default: OFF]" OFF)
 OPTION(ENABLE_LIBUNWIND    "Use libunwind to print crash traces [default: OFF]" OFF)
 OPTION(ENABLE_LUA_TRACE    "Trace all Lua C API invocations [default: OFF]" OFF)
 OPTION(ENABLE_LUA_REPL     "Enables Lua repl (requires C++11 compiler) [default: ON]" ON)
-OPTION(ENABLE_BLAS         "Enables libopenblas support [default: OFF]" OFF)
 
 ############################# INCLUDE SECTION #############################################
 
diff --git a/cmake/Openblas.cmake b/cmake/Openblas.cmake
index 6bf254042..e2afa92c5 100644
--- a/cmake/Openblas.cmake
+++ b/cmake/Openblas.cmake
@@ -1,4 +1,4 @@
-option (ENABLE_OPENBLAS    "Enable openblas for fast neural network processing [default: OFF]" OFF)
+option (ENABLE_BLAS    "Enable openblas for fast neural network processing [default: OFF]" OFF)
 
 IF(ENABLE_BLAS MATCHES "ON")
     ProcessPackage(BLAS OPTIONAL_INCLUDE LIBRARY openblas blas


More information about the Commits mailing list