mirror of
https://github.com/irungentoo/toxcore.git
synced 2024-03-22 13:30:51 +08:00
On UNIX, if pkg-config is available, use it to find the location of
libconfig's headers. modified: cmake/FindLIBCONFIG.cmake
This commit is contained in:
parent
b4664f3f29
commit
3cd6aeb541
|
@ -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