Skip to content

Commit

Permalink
adding back netcdf includes and libraries
Browse files Browse the repository at this point in the history
  • Loading branch information
K20shores committed Nov 12, 2024
1 parent fd24b34 commit 420f546
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,12 @@ target_include_directories(CloudJBuildProperties
# Append Cloud-J's environment variables to CMAKE_PREFIX_PATH
#-----------------------------------------------------------------------------
list(APPEND CMAKE_PREFIX_PATH
# Possible NetCDF environment variables
$ENV{NetCDF_F_ROOT} $ENV{NetCDF_C_ROOT} $ENV{NetCDF_ROOT}
$ENV{NETCDF_F_ROOT} $ENV{NETCDF_C_ROOT} $ENV{NETCDF_ROOT}
$ENV{NetCDF_Fortran_ROOT}
$ENV{NETCDF_FORTRAN_ROOT}

# Possible Cloud-J environmnet variables (still needed? -ewl)
$ENV{GC_F_BIN} $ENV{GC_BIN}
$ENV{GC_F_INCLUDE} $ENV{GC_INCLUDE}
Expand Down Expand Up @@ -331,8 +337,8 @@ file(WRITE ${CMAKE_BINARY_DIR}/CloudJBuildProperties.txt
if(NOT CLOUDJ_EXTERNAL_CONFIG AND NOT CLOUDJ_TRY_RUN_PASSED)

# Format definitions with -D prefix
set(TRY_RUN_LIBRARIES "")
set(TRY_RUN_INCLUDE_DIRS "")
set(TRY_RUN_LIBRARIES ${NETCDF_LIBRARIES})
set(TRY_RUN_INCLUDE_DIRS ${NETCDF_INCLUDE_DIRS})
set(TRY_RUN_COMPILER_FLAGS "")
set(TRY_RUN_DEFINITIONS "")

Expand Down

0 comments on commit 420f546

Please sign in to comment.