From b0a809f3b9892b4cb02126996e454e9a494a14c4 Mon Sep 17 00:00:00 2001 From: Trygve Laugstøl Date: Thu, 5 Oct 2017 16:24:47 +0200 Subject: o Make the output directory absolute if not already so. --- cmake/kicad_gerber.cmake | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'cmake') diff --git a/cmake/kicad_gerber.cmake b/cmake/kicad_gerber.cmake index 5495e0e..c56ed19 100644 --- a/cmake/kicad_gerber.cmake +++ b/cmake/kicad_gerber.cmake @@ -51,6 +51,10 @@ function(kicad_gerber) set(out_dir "${ARGS_DIR}") set(prefix "${out_dir}/${basename}") + if(NOT IS_ABSOLUTE "${out_dir}") + set(out_dir "${CMAKE_CURRENT_BINARY_DIR}/${ARGS_DIR}") + endif() + execute_process( COMMAND "${KicadUtilsPyDir}/kicad_gerber.py" --pcb "${pcb_file}" -- cgit v1.2.3