From: Nick Østergaard Date: Sun, 18 Dec 2016 21:16:22 +0000 (+0100) Subject: Fix issue #170 -- for real X-Git-Tag: archive/raspbian/6.0.2+dfsg-1+rpi1~1^2^2^2^2^2~3 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=5a7c726823d1d7b73fd94be4c4c323d504bef1ad;p=kicad.git Fix issue #170 -- for real (Notes by Carsten Schoenert) Upstream fix for kicad-doc commited after the release of v4.0.5. This patch will automatically fall out of the patch queue with the next version 4.0.6. This commit isn't fixing the installation of the default images. For this we need another fix. Gbp-Pq: Topic fixes Gbp-Pq: Name Fix-issue-170-for-real.patch --- diff --git a/doc/CMakeModules/KiCadDocumentation.cmake b/doc/CMakeModules/KiCadDocumentation.cmake index e4c91e46d..884f46bf3 100644 --- a/doc/CMakeModules/KiCadDocumentation.cmake +++ b/doc/CMakeModules/KiCadDocumentation.cmake @@ -136,7 +136,14 @@ macro( KiCadDocumentation DOCNAME ) add_dependencies( ${DOCNAME} ${DOCNAME}_html_${LANGUAGE} ) install( FILES ${CMAKE_CURRENT_BINARY_DIR}/${LANGUAGE}/${DOCNAME}.html DESTINATION ${KICAD_DOC_PATH}/${LANGUAGE} COMPONENT html-${LANGUAGE} ) - install( DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/${LANGUAGE}/images/ DESTINATION ${KICAD_DOC_PATH}/${LANGUAGE}/images COMPONENT html-${LANGUAGE} OPTIONAL PATTERN "*.png") + + # It seems to be nescesary to use diffrent install commands to + # install the images properly without having other lagunages + # polluting the images folder + install( DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/${LANGUAGE}/images/${LANGUAGE} DESTINATION ${KICAD_DOC_PATH}/${LANGUAGE}/images COMPONENT html-${LANGUAGE} OPTIONAL PATTERN "*.png") + install( DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/${LANGUAGE}/images/icons DESTINATION ${KICAD_DOC_PATH}/${LANGUAGE}/images COMPONENT html-${LANGUAGE} OPTIONAL PATTERN "*.png") + file(GLOB UNIVERSAL_IMAGES "${CMAKE_CURRENT_BINARY_DIR}/${LANGUAGE}/images/*.png") + install( FILES ${UNIVERSAL_IMAGES} DESTINATION ${KICAD_DOC_PATH}/${LANGUAGE}/images COMPONENT html-${LANGUAGE} ) endif()