mirror of
https://github.com/Unidata/netcdf-c.git
synced 2024-11-21 03:13:42 +08:00
f0f0f39950
# Description Remove various obsolete build options. Also do some code movement. ## Specific Changes * The remotetest server is sometimes unstable, so provide a mechanism to force disabling calls to remotetest.unidata.ucar.edu. This is enabled by adding a repository variable named REMOTETESTDOWN with the value "yes". * Fix CMakeLists.txt to use the uname command as an alternate to using the hostname command (which does not work under cygwin). * Remove the JNA stuff as obsolete * Remove the ENABLE_CLIENTSIDE_FILTERS options since it has been disabled for a while. * Fix bad option flag in some github action .yml files: change --disable-xml2 to --disable-libxml2 * Collect globalstate definitions into nc4internal.h * Remove ENABLE_NCZARR_FILTERS_TESTING option as obsolete and replace with ENABLE_NCZARR_FILTERS * Move some dispatcher independent functions from libsrc4/nc4internal.c to libdispatch/ddispatch.c * As a long term goal, and because it is now the case that --enable-nczarr => USE_NETCDF4, make the external options --enable-netcdf-4 and --enable-netcdf4 obsolete in favor of --enable-hdf5 We will do the following for one more release cycle. 1. Make --enable-netcdf-4 be an alias for --enable-netcdf4. 2. Make --enable-netcdf4 an alias for --enable-hdf5. 3. Internally, convert most uses of USE_NETCDF_4 ad USE_NETCDF4 to USE_HDF5 After the next release, --enable-netcdf-4 and --enable-netcdf4 will be removed.
52 lines
1.4 KiB
CMake
52 lines
1.4 KiB
CMake
# NetCDF Configuration Summary
|
|
#
|
|
# General
|
|
#
|
|
@PACKAGE_INIT@
|
|
|
|
set(NetCDFVersion "@PACKAGE_VERSION@")
|
|
set_and_check(netCDF_INSTALL_PREFIX "@CMAKE_INSTALL_PREFIX@")
|
|
set_and_check(netCDF_INCLUDE_DIR "@CMAKE_INSTALL_PREFIX@/@CMAKE_INSTALL_INCLUDEDIR@")
|
|
set_and_check(netCDF_LIB_DIR "@CMAKE_INSTALL_PREFIX@/@CMAKE_INSTALL_LIBDIR@")
|
|
set(netCDF_LIBRARIES netCDF::netcdf)
|
|
|
|
# include target information
|
|
include("${CMAKE_CURRENT_LIST_DIR}/netCDFTargets.cmake")
|
|
|
|
@IMPORT_MPI@
|
|
|
|
# Compiling Options
|
|
#
|
|
set(netCDF_C_COMPILER "@CC_VERSION@")
|
|
set(netCDF_C_COMPILER_FLAGS "@CFLAGS@")
|
|
set(netCDF_C_CPP_FLAGS "@CPPFLAGS@")
|
|
set(netCDF_LDFLAGS "@LDFLAGS@")
|
|
set(netCDF_AM_CFLAGS "@AM_CFLAGS@")
|
|
set(netCDF_AM_CPPFLAGS "@AM_CPPFLAGS@")
|
|
set(netCDF_AM_LDFLAGS "@AM_LDFLAGS@")
|
|
set(netCDF_SHARED @enable_shared@)
|
|
set(netCDF_STATIC @enable_static@)
|
|
|
|
# Features:
|
|
#
|
|
set(netCDF_HAS_NC2 @HAS_NC2@)
|
|
set(netCDF_HAS_NC4 @HAS_NC4@)
|
|
set(netCDF_HAS_HDF4 @HAS_HDF4@)
|
|
set(netCDF_HAS_HDF5 @HAS_HDF5@)
|
|
set(netCDF_HAS_PNETCDF @HAS_PNETCDF@)
|
|
set(netCDF_HAS_PARALLEL @HAS_PARALLEL@)
|
|
set(netCDF_HAS_DAP @HAS_DAP2@)
|
|
set(netCDF_HAS_DAP2 @HAS_DAP2@)
|
|
set(netCDF_HAS_DAP4 @HAS_DAP4@)
|
|
set(netCDF_HAS_DISKLESS @HAS_DISKLESS@)
|
|
set(netCDF_HAS_MMAP @HAS_MMAP@)
|
|
if (netCDF_HAS_HDF4 OR netCDF_HAS_HDF5)
|
|
include(CMakeFindDependencyMacro)
|
|
find_dependency(HDF5)
|
|
endif ()
|
|
|
|
if (@HAS_PARALLEL@)
|
|
include(CMakeFindDependencyMacro)
|
|
find_dependency(MPI @MPI_C_VERSION@ EXACT)
|
|
endif()
|