mirror of
https://github.com/Unidata/netcdf-c.git
synced 2024-12-03 08:01:25 +08:00
3765d86e46
When "getopt()" is not available, various of the netcdf-c utilities use XGetopt instead. This occurs primarily when building under Window, so the build changes are restricted to CMake. This PR tries to isolate XGetopt.c to the libdispatch directory and then builds the various utilities using this cliche: ```` IF(USE_X_GETOPT) SET(XGETOPTSRC "${CMAKE_CURRENT_SOURCE_DIR}/../libdispatch/XGetopt.c") ENDIF() ```` This avoids the need to copy XGetopt.c to all the directories that use it. |
||
---|---|---|
.. | ||
bigf1.cdl | ||
bigf2.cdl | ||
bigf3.cdl | ||
bigr1.cdl | ||
bigr2.cdl | ||
bigr3.cdl | ||
c0.cdl | ||
CMakeLists.txt | ||
depend | ||
escapes.c | ||
generic.h | ||
genlib.c | ||
genlib.h | ||
getfill.c | ||
init.c | ||
lfs-tests | ||
load.c | ||
main_cpp.cpp | ||
main.c | ||
Makefile.am | ||
ncgen3.1 | ||
ncgen.h | ||
ncgen.l | ||
ncgen.y | ||
ncgenl.c | ||
ncgeny.c | ||
ncgeny.h | ||
run_nc4_tests.sh | ||
run_tests2.sh | ||
run_tests.sh |