Adding colors in output messages.
authorRomain Forlot <romain.forlot@iot.bzh>
Sun, 28 May 2017 11:35:45 +0000 (13:35 +0200)
committerRomain Forlot <romain.forlot@iot.bzh>
Sun, 28 May 2017 11:35:45 +0000 (13:35 +0200)
Change-Id: Iad429f66156468098d8e7798c5cabed2481b92a4
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
cmake/common.cmake

index 9904692..afc8ce0 100644 (file)
@@ -155,9 +155,9 @@ macro(remote_targets_populate)
        )
 
        if(NOT RSYNC_TARGET OR NOT RSYNC_PREFIX)
-               message (".. Warning: RSYNC_TARGET RSYNC_PREFIX not defined 'make remote-target-populate' not instanciated")
+               message ("${Yellow}.. Warning: RSYNC_TARGET RSYNC_PREFIX not defined 'make remote-target-populate' not instanciated${ColourReset}")
                add_custom_target(remote-target-populate
-                       COMMENT "*** Fatal: RSYNC_TARGET RSYNC_PREFIX required with 'make remote-target-populate'"
+                       COMMENT "${Red}*** Fatal: RSYNC_TARGET RSYNC_PREFIX environment variables required with 'make remote-target-populate'${ColourReset}"
                        COMMAND exit -1
                )
        else()