diff options
author | Trygve Laugstøl <trygvis@inamo.no> | 2017-10-05 16:24:47 +0200 |
---|---|---|
committer | Trygve Laugstøl <trygvis@inamo.no> | 2017-10-05 16:24:47 +0200 |
commit | b0a809f3b9892b4cb02126996e454e9a494a14c4 (patch) | |
tree | 4a74fb7afe9c0aa5cbc3c2f935bccdf5bc929ae3 | |
parent | 0c621f842c3905b3f7b769fd6ee23efc188d16a4 (diff) | |
download | kicad-utils-b0a809f3b9892b4cb02126996e454e9a494a14c4.tar.gz kicad-utils-b0a809f3b9892b4cb02126996e454e9a494a14c4.tar.bz2 kicad-utils-b0a809f3b9892b4cb02126996e454e9a494a14c4.tar.xz kicad-utils-b0a809f3b9892b4cb02126996e454e9a494a14c4.zip |
o Make the output directory absolute if not already so.
-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}" |