Skip to content

Commit

Permalink
CMake: check for PKG_CONFIG_FOUND in FindPOPT.cmake
Browse files Browse the repository at this point in the history
  • Loading branch information
alanxz committed Sep 3, 2014
1 parent 8b448c6 commit b4eaaa4
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions cmake/FindPOPT.cmake
Expand Up @@ -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
Expand Down

0 comments on commit b4eaaa4

Please sign in to comment.