diff options
author | Marcus Müller <marcus@hostalia.de> | 2017-02-15 13:23:11 +0100 |
---|---|---|
committer | Marcus Müller <marcus@hostalia.de> | 2017-02-15 13:25:52 +0100 |
commit | f8688e6dfc8efd7dd1033844039efee983263b42 (patch) | |
tree | 1cebbd9bb7f984f417ec8b0102ecd7f5281fec22 /cmake | |
parent | 81e7af7b1d1e8837e5dca5978ea85f74a4745946 (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 'cmake')
-rw-r--r-- | cmake/Modules/UseSWIG.cmake | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cmake/Modules/UseSWIG.cmake b/cmake/Modules/UseSWIG.cmake index d1014943de..b7e3e05dc5 100644 --- a/cmake/Modules/UseSWIG.cmake +++ b/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() |