This is an automated email from the ASF dual-hosted git repository.

ccollins pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/mynewt-newt.git

commit 04a7530e8dde4723ab71f5d712291d4c36d81f84
Author: Christopher Collins <[email protected]>
AuthorDate: Wed Sep 25 10:40:45 2019 -0700

    cmake: print warning if any custom commands
    
    We don't currently support custom commands in cmake output.  Print a
    warning if the user runs the "target cmake" command on a target that
    specified custom commands.
---
 newt/builder/cmake.go | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/newt/builder/cmake.go b/newt/builder/cmake.go
index 49fbd7a..031b628 100644
--- a/newt/builder/cmake.go
+++ b/newt/builder/cmake.go
@@ -312,6 +312,14 @@ func (t *TargetBuilder) CMakeTargetBuilderWrite(w 
io.Writer, targetCompiler *too
                return err
        }
 
+       if len(t.res.PreBuildCmdCfg.StageFuncs) > 0 ||
+               len(t.res.PreLinkCmdCfg.StageFuncs) > 0 ||
+               len(t.res.PostBuildCmdCfg.StageFuncs) > 0 {
+
+               util.OneTimeWarning(
+                       "custom commands not included in cmake output 
(unsupported)")
+       }
+
        /* Build the Apps */
        project.ResetDeps(t.AppList)
 

Reply via email to