From f5deda971481e64c19ad49adf681124ef1417273 Mon Sep 17 00:00:00 2001 From: "Suren A. Chilingaryan" Date: Wed, 6 Apr 2016 23:20:30 +0200 Subject: Further fixes for out-of-source compilation --- CMakeLists.txt | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'CMakeLists.txt') diff --git a/CMakeLists.txt b/CMakeLists.txt index f956d3a..10add39 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -47,13 +47,17 @@ if (NOT DEFINED PCILIB_SERVER_DIR) endif (NOT DEFINED PCILIB_SERVER_DIR) if (NOT DEFINED PCILIB_DOC_DIR) - set(PCILIB_DOC_DIR "${CMAKE_CURRENT_BINARY_DIR}/docs/" CACHE PATH "Directory to install documentation") + set(PCILIB_DOC_DIR "${CMAKE_BINARY_DIR}/docs/" CACHE PATH "Directory to install documentation") endif (NOT DEFINED PCILIB_DOC_DIR) if (NOT DEFINED PCILIB_DEBUG_DIR) set(PCILIB_DEBUG_DIR "." CACHE PATH "Directory to write debug information") endif (NOT DEFINED PCILIB_DEBUG_DIR) +if (NOT DEFINED PCILIB_DYNAMIC_HEADERS_INC) + set(PCILIB_DYNAMIC_HEADERS_INC "-I${CMAKE_BINARY_DIR}") +endif (NOT DEFINED PCILIB_DYNAMIC_HEADERS_INC) + SET(ENV{PKG_CONFIG_PATH} "${CMAKE_INSTALL_LIBDIR}/pkgconfig:$ENV{PKG_CONFIG_PATH}") if (NOT DISABLE_PYTHON) -- cgit v1.2.3