Add build date into library: Fix Windows build

This commit is contained in:
Shahram Najm 2021-12-14 19:56:52 +00:00
parent 267f155628
commit 1721cc7351
1 changed files with 3 additions and 1 deletions

View File

@ -408,7 +408,9 @@ list( APPEND grib_api_extra_srcs
grib_bits_ibmpow_opt.c
minmax_val.c )
ecbuild_get_date(eccodes_BUILD_DATE)
if(UNIX)
ecbuild_get_date(eccodes_BUILD_DATE)
endif()
configure_file( grib_api_version.c.in grib_api_version.c @ONLY )
configure_file( eccodes_version.h.in eccodes_version.h @ONLY )