mirror of
https://github.com/sfilippone/amg4psblas.git
synced 2026-10-06 22:55:12 +00:00
now the cmake building works and compiles
This commit is contained in:
@@ -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()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user