-
Notifications
You must be signed in to change notification settings - Fork 65
/
CMakeMessage.class.st
66 lines (53 loc) · 2.01 KB
/
CMakeMessage.class.st
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
"
A CMakeMessageTemplate looks like
MESSAGE([TYPE] ""foo"")
from the cmake help
make --help-command message
cmake version 2.8.12
message
Display a message to the user.
message([STATUS|WARNING|AUTHOR_WARNING|FATAL_ERROR|SEND_ERROR]
""message to display"" ...)
The optional keyword determines the type of message:
(none) = Important information
STATUS = Incidental information
WARNING = CMake Warning, continue processing
AUTHOR_WARNING = CMake Warning (dev), continue processing
SEND_ERROR = CMake Error, continue processing,
but skip generation
FATAL_ERROR = CMake Error, stop processing and generation
The CMake command-line tool displays STATUS messages on stdout and all
other message types on stderr. The CMake GUI displays all messages in
its log area. The interactive dialogs (ccmake and CMakeSetup) show
STATUS messages one at a time on a status line and other messages in
interactive pop-up boxes.
CMake Warning and Error message text displays using a simple markup
language. Non-indented text is formatted in line-wrapped paragraphs
delimited by newlines. Indented text is considered pre-formatted.
"
Class {
#name : #CMakeMessage,
#superclass : #CMakeTemplate,
#instVars : [
'optionalkeyword',
'message'
],
#category : #'CMakeVMMakerSqueak-CMakeTemplates'
}
{ #category : #'initialize-release' }
CMakeMessage >> initialize [
optionalkeyword:='AUTHOR_WARNING'.
message := 'Dude! put your message here'.
self content:'
MESSAGE(', optionalkeyword, ' "', message,'")'
]
{ #category : #'as yet unclassified' }
CMakeMessage >> message: mString [
self optionalkeyword:'' message:mString.
]
{ #category : #'as yet unclassified' }
CMakeMessage >> optionalkeyword: oString message: mString [
optionalkeyword:=oString.
message := mString.
self content:' message(', optionalkeyword, ' "', message,'")'
]