Commit Graph

9898 Commits

Author SHA1 Message Date
Peter Hill
0d354152ca
Silence some conversion warnings in ncgen generated files 2024-03-25 09:25:24 +00:00
Peter Hill
c74b78efc6
Fix return type of listlength 2024-03-25 09:25:24 +00:00
Peter Hill
320c29c723
Fix more sign conversion warnings in ncgen 2024-03-25 09:25:24 +00:00
Peter Hill
47d1b68599
Cast to correct type in assignment 2024-03-25 09:25:24 +00:00
Peter Hill
3134af3ce7
Remove unused static variable 2024-03-25 09:25:24 +00:00
Peter Hill
17a7b28301
Change type of opaque object length member 2024-03-25 09:25:24 +00:00
Peter Hill
6b17d77e7a
Fix some size/conversion warnings in ncgen.l/y 2024-03-25 09:25:24 +00:00
Peter Hill
ad8b7b74b6
Remove unused function from ncgen/dump.c 2024-03-25 09:25:23 +00:00
Peter Hill
a90730c402
Try to be more consistent in char type for escaping characters 2024-03-25 09:25:23 +00:00
Peter Hill
506a09df7e
Try to be more consistent with types of alignments/offsets 2024-03-25 09:25:23 +00:00
Peter Hill
c1977cacc9
Fix some sign conversion warnings in ncgen 2024-03-25 09:25:23 +00:00
Peter Hill
c244ed6683
Use char consistently for fillchar in genchar.c 2024-03-25 09:25:23 +00:00
Peter Hill
57e754f579
Silence lots conversion warnings in ncgen 2024-03-25 09:25:23 +00:00
Peter Hill
83faffacaa
Change type of string length member
Fixes lots of sign-conversion warnings
2024-03-25 09:25:23 +00:00
Peter Hill
c80d71213d
Fix a bunch of sign conversion warnings from ncgen.y 2024-03-25 09:25:23 +00:00
Peter Hill
6c249365f0
Change bbAppendn argument type to size_t
Fixes lots of warnings about conversions changing value
2024-03-25 09:25:18 +00:00
Peter Hill
baf8108b56
CMake: Fix outdated comment for ncgen generation 2024-03-12 13:36:19 +00:00
Peter Hill
f4a909a86e
Merge branch 'main' into cmake-ncgen-generate
* main: (209 commits)
  Bump Visual Studio appveyor, for the brief period before we swap out to GitHub actions.
  Make a change in support of https://github.com/Unidata/netcdf-c/pull/2879
  Revert "fix cmake build with ENABLE_HDF4 and hdf requiring jpeg"
  removing need for global compile definition
  fix cmake build with ENABLE_HDF4 and hdf requiring jpeg
  Removed assumption that we are linking against static HDF5 when building a static library. While it's reasonable to provide a mechanism to specify this, it is not necessarily true. We should also perhaps rename the NC_FIND_SHARED option, since LIBS implies it will look for static or shared libraries for all dependencies, but this logic only looks for HDF5. In any case, commenting this out for now until we can rework it.
  Re-adding global add-definition for the time being.  Its lack introduces an unnecessary roadblock (at the moment).  Re-formulated logic for determining what tests to run when.  Need to figure out why plugins are turned off when MINGW is true, but that's a different issue.  As of this push, all tests succeed on local windows system.
  Update cmake-based plugins and test logic.
  Modify messages to be more clear.
  setting dll export on each target
  Correct lingering compilation issue under Visual Studio. Hopefully I haven't broken the Linux build
  Addressing a handful of issues encountered in Visual Studio re: linking, setting compiler flags for VC, etc.
  removing c++ header file from c header
  Corrected a dependencies issue linking against libcurl and finding curl/curl.h using Visual Studio.  There's another issue to correct, but this is getting us a lot closer.
  Correct(?) syntax with target_compile_options() in top level CMakeLists.txt.  Correct the logic flow in libncxml/CMakeLists.txt to not try to include non-existant directory when libxml2 is not found.
  removing unused cmake
  updating tests to use correct cmake variable
  removing possibly redundant cmake for shared library
  updating release notes
  bumping cmake version
  ...
2024-03-12 13:16:53 +00:00
Ward Fisher
5973f3d683
Merge pull request #2847 from K20shores/packaging
Use cmake netCDF with target_* for many options
2024-03-11 15:55:36 -06:00
Ward Fisher
79cb6c554b Bump Visual Studio appveyor, for the brief period before we swap out to GitHub actions. 2024-03-08 16:38:27 -07:00
Ward Fisher
bca37ebe0e Make a change in support of https://github.com/Unidata/netcdf-c/pull/2879 2024-03-07 17:02:26 -07:00
Ward Fisher
902896eb76
Merge pull request #2882 from Unidata/revert-2879-hdf-jpeg
Revert "fix cmake build with ENABLE_HDF4 and hdf requiring jpeg"
2024-03-07 16:58:52 -07:00
Ward Fisher
54e6189dd9
Revert "fix cmake build with ENABLE_HDF4 and hdf requiring jpeg" 2024-03-07 16:58:43 -07:00
Ward Fisher
0b9d85451c
Merge pull request #2879 from aumuell/hdf-jpeg
fix cmake build with ENABLE_HDF4 and hdf requiring jpeg
2024-03-07 16:58:21 -07:00
Kyle Shores
76f5a08f23 removing need for global compile definition 2024-03-07 10:57:25 -06:00
Martin Aumüller
9277878e6f fix cmake build with ENABLE_HDF4 and hdf requiring jpeg
Currently, the build fails because jpeg libraries are not linked in.
There is already a HDF4_LIBRARIES that always includes HDF4_MFHDF_LIB and
HDF4_DF_LIB (in cmake/dependencies.cmake), but this is never used.
HDF4_LIBRARIES will also include jpeg libraries, if required.

Fix build by linking against jpeg by linking against HDF4_LIBRARIES instead
of the two more specific variables.
2024-03-06 21:52:44 +01:00
Ward Fisher
6bcfb4bf8a
Merge pull request #2819 from DennisHeimbigner/awsdfalt.dmh
Properly handle missing regions in URLS
2024-03-05 14:34:10 -07:00
Ward Fisher
cc1494d988
Merge branch 'main' into awsdfalt.dmh 2024-03-05 12:50:08 -07:00
Ward Fisher
64cb40424c Removed assumption that we are linking against static HDF5 when building a static library. While it's reasonable to provide a mechanism to specify this, it is not necessarily true. We should also perhaps rename the NC_FIND_SHARED option, since LIBS implies it will look for static or shared libraries for all dependencies, but this logic only looks for HDF5. In any case, commenting this out for now until we can rework it. 2024-03-05 09:39:35 -07:00
Ward Fisher
6662212460
Merge pull request #2867 from Julius-Plehn/fix/hdf5_config_header
Fixes finding HDF5 header
2024-02-29 17:50:21 -07:00
Ward Fisher
8633448eea Re-adding global add-definition for the time being. Its lack introduces an unnecessary roadblock (at the moment). Re-formulated logic for determining what tests to run when. Need to figure out why plugins are turned off when MINGW is true, but that's a different issue. As of this push, all tests succeed on local windows system. 2024-02-29 12:15:30 -07:00
Ward Fisher
d557272be6 Merge branch 'packaging' of github.com:K20shores/netcdf-c into packaging 2024-02-29 12:02:04 -07:00
Ward Fisher
5ee9038a9f Update cmake-based plugins and test logic. 2024-02-29 12:01:52 -07:00
Ward Fisher
2ffbcc660b Modify messages to be more clear. 2024-02-29 11:53:13 -07:00
Kyle Shores
c29db073eb setting dll export on each target 2024-02-29 11:36:47 -06:00
Ward Fisher
f9b1b67d38 Correct lingering compilation issue under Visual Studio. Hopefully I haven't broken the Linux build 2024-02-28 16:45:48 -07:00
Ward Fisher
6738723b72 Addressing a handful of issues encountered in Visual Studio re: linking, setting compiler flags for VC, etc. 2024-02-28 16:29:23 -07:00
Kyle Shores
1508c678be removing c++ header file from c header 2024-02-27 11:50:24 -06:00
Ward Fisher
182d462203 Corrected a dependencies issue linking against libcurl and finding curl/curl.h using Visual Studio. There's another issue to correct, but this is getting us a lot closer. 2024-02-26 17:34:00 -07:00
Ward Fisher
44cb18169e Correct(?) syntax with target_compile_options() in top level CMakeLists.txt. Correct the logic flow in libncxml/CMakeLists.txt to not try to include non-existant directory when libxml2 is not found. 2024-02-23 14:06:17 -07:00
Kyle Shores
1e31577a2c removing unused cmake 2024-02-23 09:36:57 -06:00
Kyle Shores
5ee4424c5b updating tests to use correct cmake variable 2024-02-23 09:25:47 -06:00
Kyle Shores
8551a2907e removing possibly redundant cmake for shared library 2024-02-23 09:11:04 -06:00
Kyle Shores
3b0d520189 updating release notes 2024-02-23 09:04:07 -06:00
Kyle Shores
c24a0d0968 bumping cmake version 2024-02-23 09:02:15 -06:00
Kyle Shores
3526faa98d removing debug information 2024-02-23 09:01:28 -06:00
Kyle Shores
a73f4960e3 fixing a typo 2024-02-22 16:00:48 -06:00
Kyle Shores
9dbf67e88c updating hdf version 2024-02-22 11:16:11 -06:00
Kyle Shores
4edb8f8424 changing all macos versions 2024-02-22 11:04:20 -06:00
Kyle Shores
ab56e9a10b bumping macos version to see if the test passes 2024-02-22 10:26:38 -06:00