aboutsummaryrefslogtreecommitdiff
path: root/cmake
diff options
context:
space:
mode:
authorTrygve Laugstøl <trygvis@inamo.no>2017-10-05 16:24:47 +0200
committerTrygve Laugstøl <trygvis@inamo.no>2017-10-05 16:24:47 +0200
commitb0a809f3b9892b4cb02126996e454e9a494a14c4 (patch)
tree4a74fb7afe9c0aa5cbc3c2f935bccdf5bc929ae3 /cmake
parent0c621f842c3905b3f7b769fd6ee23efc188d16a4 (diff)
downloadkicad-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.
Diffstat (limited to 'cmake')
-rw-r--r--cmake/kicad_gerber.cmake4
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}"