Replace NC_FIND_SHARED_LIBS with NETCDF_FIND_SHARED_LIBS

This commit is contained in:
Kyle Shores 2024-03-18 15:44:37 -05:00
parent d9bdb5cf86
commit 345e4462e3
3 changed files with 3 additions and 4 deletions

View File

@ -223,7 +223,7 @@ include(GenerateExportHeader)
# Compiler and Linker Configuration
################################
option(NC_FIND_SHARED_LIBS "Find dynamically-built versions of dependent libraries" ${BUILD_SHARED_LIBS})
option(NETCDF_FIND_SHARED_LIBS "Find dynamically-built versions of dependent libraries" ${BUILD_SHARED_LIBS})
##
# We've had a request to allow for non-versioned shared libraries.

View File

@ -114,10 +114,10 @@ if(USE_HDF5)
# as a shared library, we will use hdf5 as a shared
# library. If we are building netcdf statically,
# we will use a static library. This can be toggled
# by explicitly modifying NC_FIND_SHARED_LIBS.
# by explicitly modifying NETCDF_FIND_SHARED_LIBS.
##
#if (MSVC)
# if(NC_FIND_SHARED_LIBS)
# if(NETCDF_FIND_SHARED_LIBS)
# set(HDF5_USE_STATIC_LIBRARIES OFF)
# else()
# set(HDF5_USE_STATIC_LIBRARIES ON)

View File

@ -1,2 +1 @@
ENABLE_XGETOPT
BUILD_SHARED_LIBS