Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"Simplify" XGetopt usage #2678

Merged
merged 2 commits into from
Apr 11, 2023
Merged

"Simplify" XGetopt usage #2678

merged 2 commits into from
Apr 11, 2023

Commits on Apr 9, 2023

  1. "Simplify" XGetopt usage

    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.
    DennisHeimbigner committed Apr 9, 2023
    Configuration menu
    Copy the full SHA
    3765d86 View commit details
    Browse the repository at this point in the history

Commits on Apr 10, 2023

  1. Missed unit_test

    DennisHeimbigner committed Apr 10, 2023
    Configuration menu
    Copy the full SHA
    f80cbc2 View commit details
    Browse the repository at this point in the history