mirror of
https://gitlab.kitware.com/cmake/cmake.git
synced 2026-10-04 04:03:22 +03:00
FindLibArchive: support version selection
This commit is contained in:
1 parent
bb29f2765c
commit
9e25b12701
1 file changed
+3
-2
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user