mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-05 19:39:01 +08:00
202ada4fcf
* [netcdf-cxx4] Update to latest commit and also export targets file * Revert the update to latest commit and make a patch to export cmake targets * Revert the changes in fix-dependecy-hdf5.patch
29 lines
823 B
CMake
29 lines
823 B
CMake
# NetCDF CXX Configuration Summary
|
|
@PACKAGE_INIT@
|
|
|
|
include(CMakeFindDependencyMacro)
|
|
|
|
if (@netCDF_FOUND@)
|
|
if(EXISTS "@netCDF_ROOT@")
|
|
set(netCDF_ROOT "@netCDF_ROOT@")
|
|
endif()
|
|
if(EXISTS "@netCDF_DIR@")
|
|
set(netCDF_DIR "@netCDF_DIR@")
|
|
endif()
|
|
find_dependency(netCDF)
|
|
set(NETCDF_C_LIBRARY ${netCDF_LIBRARIES})
|
|
set(NETCDF_C_INCLUDE_DIR ${netCDF_INCLUDE_DIR})
|
|
else()
|
|
set(NETCDF_C_LIBRARY "@NETCDF_C_LIBRARY@")
|
|
set(NETCDF_C_INCLUDE_DIR "@NETCDF_C_INCLUDE_DIR@")
|
|
endif()
|
|
|
|
if (NOT TARGET netCDF::netcdf)
|
|
add_library(netCDF::netcdf UNKNOWN IMPORTED)
|
|
set_target_properties(netCDF::netcdf PROPERTIES
|
|
IMPORTED_LOCATION "${NETCDF_C_LIBRARY}"
|
|
INTERFACE_INCLUDE_DIRECTORIES "${NETCDF_C_INCLUDE_DIR}"
|
|
)
|
|
endif()
|
|
|
|
include("${CMAKE_CURRENT_LIST_DIR}/netcdf-cxx4Targets.cmake") |