diff options
author | Rolf Eike Beer <eike@sf-mail.de> | 2016-11-22 20:58:09 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2016-11-28 21:38:42 (GMT) |
commit | 703d194338039e0231638b1f690748025ecca505 (patch) | |
tree | ca9a7af6c51a369cf63d6795cc1a7845339254d9 | |
parent | a6fe714eaa6e25c2a661c3ec57f7eb8b8dbadede (diff) | |
download | CMake-703d194338039e0231638b1f690748025ecca505.zip CMake-703d194338039e0231638b1f690748025ecca505.tar.gz CMake-703d194338039e0231638b1f690748025ecca505.tar.bz2 |
FindLibArchive: use CMAKE_CURRENT_LIST_DIR to find FPHSA
The version of CMake required to build CMake is now new enough to have
that variable.
-rw-r--r-- | Modules/FindLibArchive.cmake | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/Modules/FindLibArchive.cmake b/Modules/FindLibArchive.cmake index 1a26bbb..e188330 100644 --- a/Modules/FindLibArchive.cmake +++ b/Modules/FindLibArchive.cmake @@ -48,10 +48,7 @@ endif() # Handle the QUIETLY and REQUIRED arguments and set LIBARCHIVE_FOUND # to TRUE if all listed variables are TRUE. -# (Use ${CMAKE_ROOT}/Modules instead of ${CMAKE_CURRENT_LIST_DIR} because CMake -# 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) +include(${CMAKE_CURRENT_LIST_DIR}/FindPackageHandleStandardArgs.cmake) find_package_handle_standard_args(LibArchive REQUIRED_VARS LibArchive_LIBRARY LibArchive_INCLUDE_DIR VERSION_VAR LibArchive_VERSION |