diff options
author | Rolf Eike Beer <eike@sf-mail.de> | 2012-01-25 16:42:00 (GMT) |
---|---|---|
committer | Rolf Eike Beer <eike@sf-mail.de> | 2012-02-01 20:49:04 (GMT) |
commit | 9e25b127010464e7dea0f0f1989e5234ee4be536 (patch) | |
tree | 3b0f53b773534c03a2fd3b5ca0a8112f13ec4185 /Modules/FindLibArchive.cmake | |
parent | bb29f2765c0cd752c97862c6eb81975afdcdaed1 (diff) | |
download | CMake-9e25b127010464e7dea0f0f1989e5234ee4be536.zip CMake-9e25b127010464e7dea0f0f1989e5234ee4be536.tar.gz CMake-9e25b127010464e7dea0f0f1989e5234ee4be536.tar.bz2 |
FindLibArchive: support version selection
Diffstat (limited to 'Modules/FindLibArchive.cmake')
-rw-r--r-- | Modules/FindLibArchive.cmake | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Modules/FindLibArchive.cmake b/Modules/FindLibArchive.cmake index cedcd24..be931c5 100644 --- a/Modules/FindLibArchive.cmake +++ b/Modules/FindLibArchive.cmake @@ -54,8 +54,9 @@ endif() # 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.) include(${CMAKE_ROOT}/Modules/FindPackageHandleStandardArgs.cmake) -find_package_handle_standard_args(LibArchive DEFAULT_MSG - LibArchive_LIBRARY LibArchive_INCLUDE_DIR +find_package_handle_standard_args(LibArchive + REQUIRED_VARS LibArchive_LIBRARY LibArchive_INCLUDE_DIR + VERSION_VAR LibArchive_VERSION ) set(LibArchive_FOUND ${LIBARCHIVE_FOUND}) unset(LIBARCHIVE_FOUND) |