commit-gnuradio
[Top][All Lists]
Advanced

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

[Commit-gnuradio] [gnuradio] 01/02: Modified add_custom_command to not t


From: git
Subject: [Commit-gnuradio] [gnuradio] 01/02: Modified add_custom_command to not try to execute ""
Date: Thu, 16 Mar 2017 04:36:51 +0000 (UTC)

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

jcorgan pushed a commit to branch master
in repository gnuradio.

commit f8688e6dfc8efd7dd1033844039efee983263b42
Author: Marcus Müller <address@hidden>
Date:   Wed Feb 15 13:23:11 2017 +0100

    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 "").
---
 cmake/Modules/UseSWIG.cmake                                   | 4 ++--
 gr-utils/python/modtool/gr-newmod/cmake/Modules/UseSWIG.cmake | 4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

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



reply via email to

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