From a8d6532b79db874424acfa3bb987721a4eb4fb43 Mon Sep 17 00:00:00 2001 From: Egor Shestakov Date: Thu, 16 May 2024 18:36:20 +0700 Subject: [PATCH] don't pollute include dir with installed submodules --- CMakeLists.txt | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 9b68166f4..11d0fcb81 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -455,16 +455,20 @@ file(GLOB TTF_FONT_FILES "fonts/*/*/*.ttf") install(FILES ${TTF_FONT_FILES} DESTINATION "${FONTS_INSTALL_DIR}") if(NOT USE_EXTERNAL_MAPBOX_GEOMETRY) - install(DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/deps/mapbox/geometry/include/" DESTINATION "${MAPNIK_INCLUDE_DIR}") + install(DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/deps/mapbox/geometry/include/" + DESTINATION "${MAPNIK_INCLUDE_DIR}/mapnik/") endif() if(NOT USE_EXTERNAL_MAPBOX_POLYLABEL) - install(DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/deps/mapbox/polylabel/include/" DESTINATION "${MAPNIK_INCLUDE_DIR}") + install(DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/deps/mapbox/polylabel/include/" + DESTINATION "${MAPNIK_INCLUDE_DIR}/mapnik/") endif() if(NOT USE_EXTERNAL_MAPBOX_PROTOZERO) - install(DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/deps/mapbox/protozero/include/" DESTINATION "${MAPNIK_INCLUDE_DIR}") + install(DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/deps/mapbox/protozero/include/" + DESTINATION "${MAPNIK_INCLUDE_DIR}/mapnik/") endif() if(NOT USE_EXTERNAL_MAPBOX_VARIANT) - install(DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/deps/mapbox/variant/include/" DESTINATION "${MAPNIK_INCLUDE_DIR}") + install(DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/deps/mapbox/variant/include/" + DESTINATION "${MAPNIK_INCLUDE_DIR}/mapnik/") endif() mapnik_install_targets()