File tree Expand file tree Collapse file tree 2 files changed +15
-2
lines changed
components/homme/cmake/machineFiles Expand file tree Collapse file tree 2 files changed +15
-2
lines changed Original file line number Diff line number Diff line change @@ -20,7 +20,14 @@ ENDIF()
20
20
# Set kokkos arch, to get correct avx flags
21
21
SET (Kokkos_ARCH_BDW ON CACHE BOOL "" )
22
22
23
- SET (WITH_PNETCDF FALSE CACHE FILEPATH "" )
23
+ EXECUTE_PROCESS (COMMAND pnetcdf-config --prefix
24
+ RESULT_VARIABLE PNCCONFIG_RESULT
25
+ OUTPUT_VARIABLE PNCCONFIG_OUTPUT
26
+ ERROR_VARIABLE PNCCONFIG_ERROR
27
+ OUTPUT_STRIP_TRAILING_WHITESPACE
28
+ )
29
+ SET (PnetCDF_PATH "${PNCCONFIG_OUTPUT} " CACHE STRING "" )
30
+
24
31
#
25
32
# anvil module system doesn't set environment variables, but will put
26
33
# nc-config in our path. anvil seperates C and Fortran libraries,
Original file line number Diff line number Diff line change @@ -20,7 +20,13 @@ SET (USE_MPI_OPTIONS "-K --cpu_bind=cores" CACHE STRING "")
20
20
# Set kokkos arch, to get correct avx flags
21
21
SET (Kokkos_ARCH_ZEN2 ON CACHE BOOL "" )
22
22
23
- SET (WITH_PNETCDF FALSE CACHE FILEPATH "" )
23
+ EXECUTE_PROCESS (COMMAND pnetcdf-config --prefix
24
+ RESULT_VARIABLE PNCCONFIG_RESULT
25
+ OUTPUT_VARIABLE PNCCONFIG_OUTPUT
26
+ ERROR_VARIABLE PNCCONFIG_ERROR
27
+ OUTPUT_STRIP_TRAILING_WHITESPACE
28
+ )
29
+ SET (PnetCDF_PATH "${PNCCONFIG_OUTPUT} " CACHE STRING "" )
24
30
25
31
EXECUTE_PROCESS (COMMAND nf-config --prefix
26
32
RESULT_VARIABLE NFCONFIG_RESULT
You can’t perform that action at this time.
0 commit comments