diff options
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 6 |
1 files changed, 5 insertions, 1 deletions
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) |