mirror of
https://github.com/irungentoo/toxcore.git
synced 2024-03-22 13:30:51 +08:00
Merge pull request #353 from cjsthompson/master
On UNIX, if pkg-config is available, use it to find the location of libconfig's headers.
This commit is contained in:
commit
9613646af2
|
@ -5,7 +5,12 @@
|
|||
# LIBCONFIG_FOUND
|
||||
#
|
||||
|
||||
FIND_PATH(LIBCONFIG_INCLUDE_DIR NAMES libconfig.h)
|
||||
if (UNIX)
|
||||
find_package(PkgConfig QUIET)
|
||||
pkg_check_modules(_LIBCONFIG QUIET libconfig)
|
||||
endif ()
|
||||
|
||||
FIND_PATH(LIBCONFIG_INCLUDE_DIR NAMES libconfig.h HINTS ${_LIBCONFIG_INCLUDEDIR})
|
||||
|
||||
FIND_LIBRARY(LIBCONFIG_LIBRARY NAMES config)
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user