summaryrefslogtreecommitdiffstats
path: root/Modules/FindLibArchive.cmake
diff options
context:
space:
mode:
authorRolf Eike Beer <eike@sf-mail.de>2012-01-25 16:42:00 (GMT)
committerRolf Eike Beer <eike@sf-mail.de>2012-02-01 20:49:04 (GMT)
commit9e25b127010464e7dea0f0f1989e5234ee4be536 (patch)
tree3b0f53b773534c03a2fd3b5ca0a8112f13ec4185 /Modules/FindLibArchive.cmake
parentbb29f2765c0cd752c97862c6eb81975afdcdaed1 (diff)
downloadCMake-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.cmake5
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)