diff options
Diffstat (limited to 'cmake')
-rw-r--r-- | cmake/FindLIBCONFIG.cmake | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/cmake/FindLIBCONFIG.cmake b/cmake/FindLIBCONFIG.cmake index d5018240..b3ae4d11 100644 --- a/cmake/FindLIBCONFIG.cmake +++ b/cmake/FindLIBCONFIG.cmake | |||
@@ -5,7 +5,12 @@ | |||
5 | # LIBCONFIG_FOUND | 5 | # LIBCONFIG_FOUND |
6 | # | 6 | # |
7 | 7 | ||
8 | FIND_PATH(LIBCONFIG_INCLUDE_DIR NAMES libconfig.h) | 8 | if (UNIX) |
9 | find_package(PkgConfig QUIET) | ||
10 | pkg_check_modules(_LIBCONFIG QUIET libconfig) | ||
11 | endif () | ||
12 | |||
13 | FIND_PATH(LIBCONFIG_INCLUDE_DIR NAMES libconfig.h HINTS ${_LIBCONFIG_INCLUDEDIR}) | ||
9 | 14 | ||
10 | FIND_LIBRARY(LIBCONFIG_LIBRARY NAMES config) | 15 | FIND_LIBRARY(LIBCONFIG_LIBRARY NAMES config) |
11 | 16 | ||