From 96d2806e0d24651fbdc6e488141620b28803126a Mon Sep 17 00:00:00 2001 From: Alberto Sartori Date: Tue, 13 Nov 2018 16:47:50 +0100 Subject: [PATCH] fix include dir for install target --- cmake/config/CMakeLists.txt | 3 +-- cmake/config/config_base.pc.in | 1 + 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cmake/config/CMakeLists.txt b/cmake/config/CMakeLists.txt index 7ed5252f21..3f1bc23780 100644 --- a/cmake/config/CMakeLists.txt +++ b/cmake/config/CMakeLists.txt @@ -344,8 +344,7 @@ CONFIGURE_FILE( SET(CONFIG_PATH_PC "${CMAKE_INSTALL_PREFIX}") TO_STRING_AND_ADD_PREFIX(CONFIG_INCLUDE_DIRS_PC "-I" - \\\${prefix}/include - ${CMAKE_SOURCE_DIR}/include + \\\${includedir} ${DEAL_II_BUNDLED_INCLUDE_DIRS} ${DEAL_II_USER_INCLUDE_DIRS} ) diff --git a/cmake/config/config_base.pc.in b/cmake/config/config_base.pc.in index 15d1ee9ee5..aa87b27d83 100644 --- a/cmake/config/config_base.pc.in +++ b/cmake/config/config_base.pc.in @@ -1,4 +1,5 @@ prefix=@CONFIG_PATH_PC@ +includedir=${prefix}/@DEAL_II_INCLUDE_RELDIR@ libdir=${prefix}/@DEAL_II_LIBRARY_RELDIR@ Name: deal.II_base -- 2.39.5