Merge topic 'improve-libarchive'

9e25b12 FindLibArchive: support version selection
This commit is contained in:
David Cole 2012-02-07 15:34:20 -05:00 committed by CMake Topic Stage
commit 38e6757cd3
1 changed files with 3 additions and 2 deletions

View File

@ -54,8 +54,9 @@ endif()
# itself includes this FindLibArchive when built with an older CMake that does # itself includes this FindLibArchive when built with an older CMake that does
# not provide it. The older CMake also does not have CMAKE_CURRENT_LIST_DIR.) # not provide it. The older CMake also does not have CMAKE_CURRENT_LIST_DIR.)
include(${CMAKE_ROOT}/Modules/FindPackageHandleStandardArgs.cmake) include(${CMAKE_ROOT}/Modules/FindPackageHandleStandardArgs.cmake)
find_package_handle_standard_args(LibArchive DEFAULT_MSG find_package_handle_standard_args(LibArchive
LibArchive_LIBRARY LibArchive_INCLUDE_DIR REQUIRED_VARS LibArchive_LIBRARY LibArchive_INCLUDE_DIR
VERSION_VAR LibArchive_VERSION
) )
set(LibArchive_FOUND ${LIBARCHIVE_FOUND}) set(LibArchive_FOUND ${LIBARCHIVE_FOUND})
unset(LIBARCHIVE_FOUND) unset(LIBARCHIVE_FOUND)