Skip to content
Browse files

cmake/FindLibBSD.cmake: get libbsd version

Signed-off-by: Serge Zirukin <ftrvxmtrx@gmail.com>
  • Loading branch information...
1 parent a64097b commit 2f943a6a0061e618b59e9db4c4f920da869905bb @ftrvxmtrx committed Feb 27, 2012
Showing with 3 additions and 1 deletion.
  1. +3 −1 cmake/FindLibBSD.cmake
View
4 cmake/FindLibBSD.cmake
@@ -27,5 +27,7 @@
pkg_search_module(LIBBSD REQUIRED QUIET libbsd>=0.3.0)
find_library(LIBBSD_LIBRARY NAMES bsd HINTS ${LIBBSD_LIBRARY_DIRS})
-find_package_handle_standard_args(LibBSD DEFAULT_MSG LIBBSD_LIBRARY LIBBSD_INCLUDE_DIRS)
+find_package_handle_standard_args(LibBSD
+ REQUIRED_VARS LIBBSD_LIBRARY LIBBSD_INCLUDE_DIRS
+ VERSION_VAR LIBBSD_VERSION)
include_directories(${LIBBSD_INCLUDE_DIRS})

0 comments on commit 2f943a6

Please sign in to comment.
Something went wrong with that request. Please try again.