From: Petr Vaněk Date: Tue, 26 Nov 2019 18:16:12 +0000 (+0100) Subject: cmake: Unify ENABLE_OPENBLAS and ENABLE_BLAS X-Git-Tag: 2.3~293^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=bbf8bb172d168f16cc90264af1da1f32a42890c3;p=thirdparty%2Frspamd.git 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. --- diff --git a/CMakeLists.txt b/CMakeLists.txt index 841ac0a5db..7cd5ef398f 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 6bf254042b..e2afa92c5a 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