From 6c58ae3ae176e49569730760c8093476bdb5f2df Mon Sep 17 00:00:00 2001 From: Mathis Logemann Date: Tue, 16 Apr 2024 20:05:38 +0200 Subject: [PATCH] don't pollute global include dir when installing agg --- CMakeLists.txt | 4 ++-- cmake/MapnikExportPkgConfig.cmake | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index bd7b4ab6e..a745fabd7 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -448,8 +448,8 @@ feature_summary(FILENAME "${CMAKE_CURRENT_BINARY_DIR}/packages.log" WHAT PACKAGE include(MapnikExport) include(MapnikExportPkgConfig) -install(DIRECTORY include/ DESTINATION "${MAPNIK_INCLUDE_DIR}") -install(DIRECTORY deps/agg/include/ DESTINATION "${MAPNIK_INCLUDE_DIR}") +install(DIRECTORY include/mapnik/ DESTINATION "${MAPNIK_INCLUDE_DIR}/mapnik") +install(DIRECTORY deps/agg/include/ DESTINATION "${MAPNIK_INCLUDE_DIR}/mapnik/agg") install(DIRECTORY deps/mapnik DESTINATION "${MAPNIK_INCLUDE_DIR}") file(GLOB TTF_FONT_FILES "fonts/*/*/*.ttf") install(FILES ${TTF_FONT_FILES} DESTINATION "${FONTS_INSTALL_DIR}") diff --git a/cmake/MapnikExportPkgConfig.cmake b/cmake/MapnikExportPkgConfig.cmake index e459f80ef..e8b69065b 100644 --- a/cmake/MapnikExportPkgConfig.cmake +++ b/cmake/MapnikExportPkgConfig.cmake @@ -9,7 +9,7 @@ Name: @_lib_name@ Description: @_description@ Version: @MAPNIK_VERSION@ Libs: -L"${libdir}" -l$$_POSTFIX> -Cflags: -I"${includedir}" ]] +Cflags: -I"${includedir}" -I"${includedir}/mapnik" ]] _contents @ONLY) file(GENERATE @@ -73,7 +73,7 @@ Description: @_description@ Version: @MAPNIK_VERSION@ Requires: @m_requires@ Libs: -L"${libdir}" -l$$_POSTFIX> -Cflags: -I"${includedir}" @m_str_compile_defs@]] +Cflags: -I"${includedir}" -I"${includedir}/mapnik" -I"${includedir}/mapnik/agg" @m_str_compile_defs@]] _contents @ONLY) file(GENERATE OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/${_lib_name}-$.pc