diff --git a/.github/workflows/Linux_options.yml b/.github/workflows/Linux_options.yml index 9e5b7810..69ed9015 100644 --- a/.github/workflows/Linux_options.yml +++ b/.github/workflows/Linux_options.yml @@ -28,7 +28,7 @@ jobs: matrix: config: - { - options: "-DUSE_IPOLATES" + options: "-DUSE_IPOLATES=1" } steps: diff --git a/CMakeLists.txt b/CMakeLists.txt index f5c592f2..28233ae7 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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) @@ -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)