From cf93042e42dbe8cb0aa556469163a6886bf460d8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luca=20Pep=C3=A8=20Sciarria?= Date: Mon, 9 Jun 2025 09:42:08 +0200 Subject: [PATCH] now the cmake building works and compiles --- samples/simple/fileread/CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/samples/simple/fileread/CMakeLists.txt b/samples/simple/fileread/CMakeLists.txt index 8fd26fa3..f4403620 100644 --- a/samples/simple/fileread/CMakeLists.txt +++ b/samples/simple/fileread/CMakeLists.txt @@ -2,11 +2,11 @@ cmake_minimum_required(VERSION 3.15) project(AMGExamples Fortran) # Installation directories (passed as CMake variables) -set(AMG_INSTALL_DIR "" CACHE PATH "Path to AMG installation") +set(AMG4PSBLAS_INSTALL_DIR "" CACHE PATH "Path to AMG installation") set(PSBLAS_INSTALL_DIR "" CACHE PATH "Path to PSBLAS installation") # Check if installation directories are set -if(NOT AMG_INSTALL_DIR) +if(NOT AMG4PSBLAS_INSTALL_DIR) message(FATAL_ERROR "AMG_INSTALL_DIR must be set. Use -DAMG_INSTALL_DIR=/path/to/amg when running CMake.") endif()