Merge branch 'jarlela-cmake_exports'

This commit is contained in:
Ward Fisher 2014-05-09 15:01:47 -06:00
commit d25282d335
3 changed files with 5 additions and 5 deletions

View File

@ -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)
###

View File

@ -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()

View File

@ -11,5 +11,5 @@ include ("${_prefix}/share/cmake/netcdf-targets.cmake")
# Report other information
set (netcdf_INCLUDE_DIRS "${_prefix}/include/")
set (netcdf_LIBRARIES "netcdf")