Skip to content
Snippets Groups Projects
Commit f16ba664 authored by Stéphane Del Pino's avatar Stéphane Del Pino
Browse files

Use PUGS_PREFIX_PATH to define pugs installation dir for plugins [ci-skip]

- the environment variable PUGS_INSTALL_DIR is no more used
- also fix HDF5 detection on ubuntu for plugins
parent 9a069530
Branches
No related tags found
No related merge requests found
......@@ -2,12 +2,12 @@ cmake_minimum_required (VERSION 3.19)
project("_PLUGIN_LOW_")
if (NOT PUGS_PREFIX_PATH)
if (DEFINED ENV{PUGS_INSTALL_DIR})
message(STATUS "Looking for pugs in ${PUGS_INSTALL_DIR}")
else()
message(FATAL_ERROR "you must set PUGS_INSTALL_DIR environment variable")
endif()
set(PUGS_PREFIX_PATH "" CACHE STRING "pugs intall dir")
string(COMPARE EQUAL "${PUGS_PREFIX_PATH}" "" pugs_prefix_undefined)
if (pugs_prefix_undefined)
message(FATAL_ERROR "PUGS_PREFIX_PATH must be defined")
endif()
# CMake utils
......@@ -23,6 +23,7 @@ find_package(Pugs REQUIRED)
list(APPEND CMAKE_MODULE_PATH "${PUGS_PREFIX_PATH}/lib/cmake/Kokkos")
include(KokkosConfig)
set(HDF5_PREFER_PARALLEL TRUE)
list(APPEND CMAKE_MODULE_PATH "${PUGS_PREFIX_PATH}/lib/cmake/HighFive")
include(HighFiveConfig)
......
......@@ -32,7 +32,7 @@ make install
In the build directory one runs
```shell
PUGS_INSTALL_DIR=pugs_install_dir cmake _PLUGIN_LOW__dir
cmake -DPUGS_PREFIX_PATH=pugs_install_dir _PLUGIN_LOW__dir
```
where `pugs_install_dir` has the same value as above and `_PLUGIN_LOW__dir`
is the directory that contains this `README.md` file.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment