commit-gnuradio
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Commit-gnuradio] [gnuradio] 07/09: CMake: Fix dummy command in UseSWIG.


From: git
Subject: [Commit-gnuradio] [gnuradio] 07/09: CMake: Fix dummy command in UseSWIG.cmake
Date: Wed, 9 Mar 2016 15:50:52 +0000 (UTC)

This is an automated email from the git hooks/post-receive script.

jcorgan pushed a commit to branch maint
in repository gnuradio.

commit fd6fc554256dfa16884274f0f59665c50fc8098a
Author: Paul Cercueil <address@hidden>
Date:   Tue Mar 1 11:43:07 2016 +0100

    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 <address@hidden>
---
 cmake/Modules/UseSWIG.cmake | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/cmake/Modules/UseSWIG.cmake b/cmake/Modules/UseSWIG.cmake
index c0f1728..d101494 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()
 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]