summaryrefslogtreecommitdiff
path: root/gr-utils/python/modtool
diff options
context:
space:
mode:
authorMarcus Müller <marcus@hostalia.de>2017-02-15 13:23:11 +0100
committerMarcus Müller <marcus@hostalia.de>2017-02-15 13:25:52 +0100
commitf8688e6dfc8efd7dd1033844039efee983263b42 (patch)
tree1cebbd9bb7f984f417ec8b0102ecd7f5281fec22 /gr-utils/python/modtool
parent81e7af7b1d1e8837e5dca5978ea85f74a4745946 (diff)
Modified add_custom_command to not try to execute ""
former custom command called ""; this works fine on build systems were this is expanded by shell, but fails on some of my systems where add_custom_command's COMMAND parameter is directly executed (because there's no executable "").
Diffstat (limited to 'gr-utils/python/modtool')
-rw-r--r--gr-utils/python/modtool/gr-newmod/cmake/Modules/UseSWIG.cmake4
1 files changed, 2 insertions, 2 deletions
diff --git a/gr-utils/python/modtool/gr-newmod/cmake/Modules/UseSWIG.cmake b/gr-utils/python/modtool/gr-newmod/cmake/Modules/UseSWIG.cmake
index c0f172870b..b7e3e05dc5 100644
--- a/gr-utils/python/modtool/gr-newmod/cmake/Modules/UseSWIG.cmake
+++ b/gr-utils/python/modtool/gr-newmod/cmake/Modules/UseSWIG.cmake
@@ -224,9 +224,9 @@ print(re.sub('\\W', '_', '${name} ${reldir} ' + unique))"
foreach(swig_gen_file ${${outfiles}})
add_custom_command(
OUTPUT ${swig_gen_file}
- COMMAND ""
+ COMMAND "${CMAKE_COMMAND}" -E touch_nocreate "${swig_gen_file}"
DEPENDS ${_target}
- COMMENT ""
+ COMMENT "dummy command to show ${_target} dependency of ${swig_gen_file}"
)
endforeach()