Fix issue #170 -- for real
authorNick Østergaard <oe.nick@gmail.com>
Sun, 18 Dec 2016 21:16:22 +0000 (22:16 +0100)
committerCarsten Schoenert <c.schoenert@t-online.de>
Wed, 25 Jan 2017 21:38:35 +0000 (21:38 +0000)
(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

doc/CMakeModules/KiCadDocumentation.cmake

index e4c91e46d7edcf3f0c443e0fc1e6b65c5dc8d3b0..884f46bf33311d08d619d0b9761a72af10e59ede 100644 (file)
@@ -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()