diff options
-rw-r--r-- | cmake/kicad_gerber.cmake | 4 |
1 files changed, 4 insertions, 0 deletions
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}" |