From 33f795be4f1212a543da9ff3dd6caaf08bfa41f3 Mon Sep 17 00:00:00 2001 From: jean-pierre charras Date: Sun, 25 Mar 2018 16:18:22 +0200 Subject: [PATCH] Make call to Inkscape (to convert .svg files to .png files) compatible with OSX version of Inkscape --- bitmaps_png/CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bitmaps_png/CMakeLists.txt b/bitmaps_png/CMakeLists.txt index c50a80c5d6..b8cdfef23c 100644 --- a/bitmaps_png/CMakeLists.txt +++ b/bitmaps_png/CMakeLists.txt @@ -2,7 +2,7 @@ # This program source code file is part of KICAD, a free EDA CAD application. # # Copyright (C) 2011 SoftPLC Corporation, Dick Hollenbeck -# Copyright (C) 2011-2016 Kicad Developers, see change_log.txt for contributors#. +# Copyright (C) 2011-2018 Kicad Developers, see AUTHORS.txt for contributors. # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License @@ -630,7 +630,7 @@ function( svg2png inputFile outFile pngWidth pngHeight ) add_custom_command( OUTPUT ${outFile} - COMMAND ${Inkscape_EXECUTABLE} --export-area-snap -f ${inputFile} -e ${outFile} + COMMAND ${Inkscape_EXECUTABLE} --without-gui --export-area-snap -f ${inputFile} -e ${outFile} -w ${pngWidth} -h ${pngHeight} > ${logfile} DEPENDS ${inputFile} COMMENT "Creating ${pngHeight} pixel tall ${outFile}"