From 687e0824e8765d8106233b4e71c89bf668e5e833 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luca=20Pep=C3=A8=20Sciarria?= Date: Thu, 17 Apr 2025 14:35:36 +0200 Subject: [PATCH] change how PSBLAS_INSTALL_DIR is set --- CMakeLists.txt | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 5633c9f0..c8aaca80 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -4,10 +4,18 @@ project(amg4psblas VERSION 1.0 LANGUAGES C Fortran) set(CMAKE_MODULE_PATH "${CMAKE_CURRENT_LIST_DIR}/cmake") -# Check for the installation path for psblas -if(NOT DEFINED PSBLAS_INSTALL_DIR) - message(FATAL_ERROR "Please specify the path to the psblas installation directory using -DPSBLAS_INSTALL_DIR=") + +set(PSBLAS_INSTALL_DIR "" CACHE PATH "Path to the PSBLAS installation +directory") +if(PSBLAS_INSTALL_DIR STREQUAL "") + message(FATAL_ERROR "Please specify the path to the PSBLAS installation directory using -DPSBLAS_INSTALL_DIR= or set it in ccmake.") endif() + + +# Check for the installation path for psblas +#if(NOT DEFINED PSBLAS_INSTALL_DIR) +# message(FATAL_ERROR "Please specify the path to the psblas installation directory using -DPSBLAS_INSTALL_DIR=") +#endif() message(STATUS "psblas directory is ${PSBLAS_INSTALL_DIR};;")