don't use find_package for libconfig, no default package in debian/libconfig installation
This commit is contained in:
parent
ba4af36df0
commit
db4c71d7fe
@ -106,15 +106,22 @@ else ()
|
|||||||
|
|
||||||
message("")
|
message("")
|
||||||
# libconfig
|
# libconfig
|
||||||
FIND_PACKAGE(libconfig++ REQUIRED)
|
FIND_PATH(LIBCONFIG++_INCLUDE_DIRS
|
||||||
|
NAMES libconfig.h++
|
||||||
|
PATHS /usr/include /usr/local/include) # search for libconfig include headers
|
||||||
|
FIND_LIBRARY(LIBCONFIG++_LIBRARY_DIRS
|
||||||
|
NAMES config++
|
||||||
|
PATHS /usr/lib /usr/local/lib) # search for actual lib
|
||||||
|
|
||||||
if (LIBCONFIG++_INCLUDE_DIRS AND LIBCONFIG++_LIBRARY_DIRS)
|
if (LIBCONFIG++_INCLUDE_DIRS AND LIBCONFIG++_LIBRARY_DIRS)
|
||||||
message(STATUS "Found libconfig version: ${LIBCONFIG++_VERSION}")
|
message(STATUS "Fount libconfig!")
|
||||||
message(STATUS "Using libconfig include dir(s): ${LIBCONFIG++_INCLUDE_DIRS}")
|
message(STATUS "Using libconfig include dir(s): ${LIBCONFIG++_INCLUDE_DIRS}")
|
||||||
message(STATUS "Using libconfig lib(s): ${LIBCONFIG++_LIBRARY_DIRS}")
|
message(STATUS "Using libconfig lib(s): ${LIBCONFIG++_LIBRARY_DIRS}")
|
||||||
else ()
|
else ()
|
||||||
message(FATAL_ERROR "Could not find CURL")
|
message(FATAL_ERROR "Could not find LIBCONFIG")
|
||||||
endif ()
|
endif ()
|
||||||
include_directories(${LIBCONFIG++_INCLUDE_DIRS} inc)
|
|
||||||
|
include_directories(${LIBCONFIG_INCLUDE_DIRS})
|
||||||
endif ()
|
endif ()
|
||||||
|
|
||||||
message("")
|
message("")
|
||||||
|
Loading…
Reference in New Issue
Block a user