diff options
author | Alan Antonuk <alan.antonuk@gmail.com> | 2014-09-02 19:58:35 -0700 |
---|---|---|
committer | Alan Antonuk <alan.antonuk@gmail.com> | 2014-09-02 19:58:35 -0700 |
commit | b4eaaa4dca415ece10b9f4c1392b3f1bc6fd6758 (patch) | |
tree | 7dfae38f540b7ff794d8e0db8156b4077da72fa8 /cmake/FindPOPT.cmake | |
parent | 8b448c6a0d073376614928a18eed101092d3044a (diff) | |
download | rabbitmq-c-b4eaaa4dca415ece10b9f4c1392b3f1bc6fd6758.tar.gz |
CMake: check for PKG_CONFIG_FOUND in FindPOPT.cmake
Diffstat (limited to 'cmake/FindPOPT.cmake')
-rw-r--r-- | cmake/FindPOPT.cmake | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/cmake/FindPOPT.cmake b/cmake/FindPOPT.cmake index de29c7e..4242875 100644 --- a/cmake/FindPOPT.cmake +++ b/cmake/FindPOPT.cmake @@ -4,13 +4,15 @@ # # POPT_FOUND - System has popt # POPT_INCLUDE_DIR - The popt include directory -# POPT_LIBRARIES - The libraries needed to use popt +# POPT_LIBRARY - The libraries needed to use popt # use pkg-config to get the directories and then use these values # in the FIND_PATH() and FIND_LIBRARY() calls find_package(PkgConfig QUIET) -pkg_search_module(PC_POPT QUIET popt) +if (PKG_CONFIG_FOUND) + pkg_search_module(PC_POPT QUIET popt) +endif () # Find the include directories FIND_PATH(POPT_INCLUDE_DIR |