Skip to content

Commit

Permalink
error out of cmake if netcdf-c dispatch table wont work for netcdf in…
Browse files Browse the repository at this point in the history
…tegration
  • Loading branch information
edwardhartnett committed Aug 19, 2020
1 parent 52367bd commit 5acda4b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -347,6 +347,9 @@ CHECK_C_SOURCE_COMPILES("
int main() {return 0;}" HAVE_DISPATCH2)

if (NETCDF_INTEGRATION)
if (NOT HAVE_DISPATCH2)
message (FATAL_ERROR "Need newer version of netcdf-c for netcdf integration feature, please upgrade your netCDF library")
endif ()
set(HAVE_NETCDF_INTEGRATION 1)
else ()
set(HAVE_NETCDF_INTEGRATION 0)
Expand Down

0 comments on commit 5acda4b

Please sign in to comment.