From a89173e01a8b854542bb27720ffed75ac031bc4e Mon Sep 17 00:00:00 2001 From: Martin Beseda <martin.beseda@vsb.cz> Date: Tue, 5 Mar 2019 16:07:15 +0100 Subject: [PATCH] FIX: Initializing *_FOUND variables to an empty string, if NOTFOUND. --- src/CMakeLists.txt | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 63992b98..a91df200 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -77,6 +77,18 @@ if ("${BUILD_LIB}" STREQUAL "yes") set(GFORT gfortran) endif() + if(NOT OpenBLAS_LIBRARIES) + set(OpenBLAS_LIBRARIES "") + endif() + + if(NOT BLAS_LIBRARIES) + set(BLAS_LIBRARIES "") + endif() + + if(NOT LAPACK_LIBRARIES) + set(LAPACK_LIBRARIES "") + endif() + target_link_libraries( lib4neuro -- GitLab