NOAA-EMC / NCEPLIBS-g2c

This library contains C decoder/encoder routines for GRIB edition 2.
Other
18 stars 11 forks source link

JPEG tests not being run because JPEG pre-processor macro is set only for src directory #422

Closed edwardhartnett closed 1 year ago

edwardhartnett commented 1 year ago

We have test tst_degrib2_ftp_all.c which has:

ifdef JPEG

ifdef FTP_TEST_FILES

printf("Testing degrib2 on files downloaded via FTP...\n");
{

define NUM_FILES 9

But JPEG is only set in the src directory.

The detection of Jasper or other jpeg library should happen at the top-level CMake file.