Skip to content

Commit

Permalink
trying ip build
Browse files Browse the repository at this point in the history
  • Loading branch information
edwardhartnett committed Mar 27, 2024
1 parent d219dc4 commit ec4416a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/Linux_options.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
matrix:
config:
- {
options: "-DUSE_IPOLATES"
options: "-DUSE_IPOLATES=1"
}

steps:
Expand Down
9 changes: 4 additions & 5 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,7 @@ option(USE_HDF5 "Use HDF5?" off)
option(USE_REGEX "Use Regex?" on)
option(USE_TIGGE "Use tigge?" on)
option(USE_MYSQL "Use MySQL?" off)
option(USE_IPOLATES "Use NCEPLIBS-ip interpolation library?" off)
set(USE_IPOLATES 0)
option(USE_IPOLATES "iplib=0,1,3?" 3)
option(USE_UDF "Use UDF?" off)
option(USE_OPENMP "Use OpenMP?" on)
option(USE_PROJ4 "Use Proj4?" off)
Expand Down Expand Up @@ -75,11 +74,11 @@ if(USE_NETCDF3 AND USE_NETCDF4)
endif()

# If user wants to use NCEPLIBS-ip, find it and the sp library.
if(USE_IPOLATES)
if(USE_IPOLATES EQUAL 1)
find_package(ip CONFIG REQUIRED)
find_package(sp CONFIG REQUIRED)
# elseif(USE_IPOLATES EQUAL 3)
# find_package(ip2 CONFIG REQUIRED)
elseif(USE_IPOLATES EQUAL 3)
find_package(ip2 CONFIG REQUIRED)
endif()

if(USE_NETCDF4)
Expand Down

0 comments on commit ec4416a

Please sign in to comment.