diff options
author | Paul Cercueil <paul.cercueil@analog.com> | 2016-03-01 11:43:07 +0100 |
---|---|---|
committer | Johnathan Corgan <johnathan@corganlabs.com> | 2016-03-09 07:00:00 -0800 |
commit | fd6fc554256dfa16884274f0f59665c50fc8098a (patch) | |
tree | 2d78b7a6ddae79a1672033eef1b3f50261c9530f /cmake | |
parent | 507dc4ab774a4baefe67ed6e5e1c97c6fc696b84 (diff) |
CMake: Fix dummy command in UseSWIG.cmake
Having the COMMAND parameter of the add_custom_command() function as an
empty string only works on Linux when generating Makefiles. It did not
work on Linux when using a different generator (in my case, Ninja), or
when building under Visual Studio.
This commit removes the empty string, and just don't specify any
command. This will work on all system / build system couples possible.
Signed-off-by: Paul Cercueil <paul.cercueil@analog.com>
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 c0f172870b..d1014943de 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 DEPENDS ${_target} - COMMENT "" + COMMENT ) endforeach() |