mirror of
https://github.com/Unidata/netcdf-c.git
synced 2025-03-01 17:06:03 +08:00
Merge branch 'jarlela-cmake_exports'
This commit is contained in:
commit
d25282d335
@ -1180,7 +1180,7 @@ configure_file(
|
||||
|
||||
install(FILES ${netCDF_BINARY_DIR}/netcdf-config.cmake
|
||||
${netCDF_BINARY_DIR}/netcdf-config-version.cmake
|
||||
DESTINATION share/cmake)
|
||||
DESTINATION share/cmake/netcdf)
|
||||
|
||||
|
||||
###
|
||||
|
@ -1,10 +1,10 @@
|
||||
# Cmake Package & Configuration file support.
|
||||
# Based on code from 'Mastering Cmake'
|
||||
|
||||
set (PACKAGE_VERSION "@version@")
|
||||
if (NOT "${PACKAGE_FIND_VERSION}" VERSION_GREATER "@version@")
|
||||
set (PACKAGE_VERSION "@VERSION@")
|
||||
if (NOT "${PACKAGE_FIND_VERSION}" VERSION_GREATER "@VERSION@")
|
||||
set (PACKAGE_VERSION_COMPATIBLE 1) # Compatible with older.
|
||||
if ("${PACKAGE_FIND_VERSION}" VERSION_EQUAL "@version@")
|
||||
if ("${PACKAGE_FIND_VERSION}" VERSION_EQUAL "@VERSION@")
|
||||
set(PACKAGE_VERSION_EXACT 1) # exact match for this version.
|
||||
endif()
|
||||
endif()
|
||||
|
@ -11,5 +11,5 @@ include ("${_prefix}/share/cmake/netcdf-targets.cmake")
|
||||
# Report other information
|
||||
set (netcdf_INCLUDE_DIRS "${_prefix}/include/")
|
||||
|
||||
|
||||
set (netcdf_LIBRARIES "netcdf")
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user