Skip to content

Commit 895d3a4

Browse files
authored
Merge pull request #162 from thelfer/161-fix-ci
161 fix ci
2 parents 0a466a1 + 7ddfba4 commit 895d3a4

2 files changed

Lines changed: 14 additions & 8 deletions

File tree

.github/workflows/check.yml

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -30,13 +30,15 @@ jobs:
3030
shell: spack-sh {0}
3131
run: |
3232
# spack load python py-numpy py-pybind11
33+
# loading TFEL
3334
spack load tfel
34-
cmake -DCMAKE_BUILD_TYPE=Release . \
35-
-Denable-c-bindings=ON \
36-
-Denable-fortran-bindings=ON \
37-
-Denable-python-bindings=OFF \
38-
-Denable-portable-build=ON \
39-
-Denable-julia-bindings=OFF
35+
cmake -DCMAKE_BUILD_TYPE=Release . \
36+
-Denable-c-bindings=ON \
37+
-Denable-fortran-bindings=ON \
38+
-Denable-python-bindings=OFF \
39+
-Denable-portable-build=ON \
40+
-Denable-julia-bindings=OFF \
41+
-DTFEL_DIR=`spack location -i tfel`/share/tfel/cmake
4042
- name: make
4143
shell: spack-sh {0}
4244
run: |

cmake/modules/FindTFEL.cmake

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,12 @@
1111
# - TFEL_CXX_STANDARD
1212
# - TFEL_VERSION
1313

14-
if(DEFINED ENV{TFELHOME})
15-
set(TFELHOME $ENV{TFELHOME})
14+
if(DEFINED TFEL_DIR)
15+
set(TFELHOME "${TFEL_DIR}")
16+
else()
17+
if(DEFINED ENV{TFELHOME})
18+
set(TFELHOME "$ENV{TFELHOME}")
19+
endif()
1620
endif()
1721
message(STATUS "tfelhome: ${TFELHOME}")
1822

0 commit comments

Comments
 (0)