diff options
author | João Valverde <joao.valverde@tecnico.ulisboa.pt> | 2019-01-11 21:47:59 +0000 |
---|---|---|
committer | Peter Wu <peter@lekensteyn.nl> | 2019-01-12 18:16:59 +0000 |
commit | 6d08cb2ecd51dceefb49ff65532e0ca4de4ad417 (patch) | |
tree | 7a32853745b7935150a164fe77069b0483f67760 /cmake/modules/FindSystemd.cmake | |
parent | 16953eca30e47cad1b603dfe3134d40c1bc8b2f5 (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/FindSystemd.cmake')
-rw-r--r-- | cmake/modules/FindSystemd.cmake | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cmake/modules/FindSystemd.cmake b/cmake/modules/FindSystemd.cmake index e6d107d337..0ddf4f7ff4 100644 --- a/cmake/modules/FindSystemd.cmake +++ b/cmake/modules/FindSystemd.cmake @@ -37,5 +37,5 @@ find_path(SYSTEMD_INCLUDE_DIRS systemd/sd-login.h HINTS ${PC_SYSTEMD_INCLUDE_DIR set(SYSTEMD_DEFINITIONS ${PC_SYSTEMD_CFLAGS_OTHER}) include(FindPackageHandleStandardArgs) -find_package_handle_standard_args(SYSTEMD DEFAULT_MSG SYSTEMD_INCLUDE_DIRS SYSTEMD_LIBRARIES) +find_package_handle_standard_args(SYSTEMD DEFAULT_MSG SYSTEMD_LIBRARIES SYSTEMD_INCLUDE_DIRS) mark_as_advanced(SYSTEMD_INCLUDE_DIRS SYSTEMD_LIBRARIES SYSTEMD_DEFINITIONS) |