aboutsummaryrefslogtreecommitdiffstats
path: root/cmake/modules/FindSNAPPY.cmake
diff options
context:
space:
mode:
authorJoão Valverde <joao.valverde@tecnico.ulisboa.pt>2019-01-11 21:47:59 +0000
committerPeter Wu <peter@lekensteyn.nl>2019-01-12 18:16:59 +0000
commit6d08cb2ecd51dceefb49ff65532e0ca4de4ad417 (patch)
tree7a32853745b7935150a164fe77069b0483f67760 /cmake/modules/FindSNAPPY.cmake
parent16953eca30e47cad1b603dfe3134d40c1bc8b2f5 (diff)
CMake: Fix inconsistent find_package() report output
Most CMake find modules report the binary found, the modules fixed by this change represent an inconsistent exception. The first REQUIRED_VAR argument to find_package_handle_standard_args() is the one used by CMake to report on the result of find_package(). Compare (master) -- Found SNAPPY: /usr/include to (this change) -- Found SNAPPY: /usr/lib/x86_64-linux-gnu/libsnappy.so This convention of using XXX_LIBRARY matches upstream practice. Change-Id: Iaa0ec644e963430d73722354f6ee2a3694906ba7 Reviewed-on: https://code.wireshark.org/review/31498 Petri-Dish: Peter Wu <peter@lekensteyn.nl> Reviewed-by: Peter Wu <peter@lekensteyn.nl>
Diffstat (limited to 'cmake/modules/FindSNAPPY.cmake')
-rw-r--r--cmake/modules/FindSNAPPY.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmake/modules/FindSNAPPY.cmake b/cmake/modules/FindSNAPPY.cmake
index 7e55312739..7964c9d145 100644
--- a/cmake/modules/FindSNAPPY.cmake
+++ b/cmake/modules/FindSNAPPY.cmake
@@ -32,7 +32,7 @@ find_library(SNAPPY_LIBRARY
)
include(FindPackageHandleStandardArgs)
-find_package_handle_standard_args( SNAPPY DEFAULT_MSG SNAPPY_INCLUDE_DIR SNAPPY_LIBRARY )
+find_package_handle_standard_args( SNAPPY DEFAULT_MSG SNAPPY_LIBRARY SNAPPY_INCLUDE_DIR )
if( SNAPPY_FOUND )
set( SNAPPY_INCLUDE_DIRS ${SNAPPY_INCLUDE_DIR} )