-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathLoggingHelper.cmake
More file actions
27 lines (21 loc) · 728 Bytes
/
Copy pathLoggingHelper.cmake
File metadata and controls
27 lines (21 loc) · 728 Bytes
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
function(log_info MSG)
message(STATUS "${MsgOk}${MSG}${MsgClr}")
endfunction()
function(log_war MSG)
message(STATUS "${MsgWar}${MSG}${MsgClr}")
endfunction()
function(log_err MSG)
message(SEND_ERROR "${MsgErr}${MSG}${MsgClr}")
endfunction()
function(log_fatal MSG)
message(FATAL_ERROR "${MsgErr}${MSG}${MsgClr}")
endfunction()
function(log_option_enabled OPTION)
message(STATUS "${MsgBold}Enabled:${MsgClr} ${MsgOk}${OPTION}${MsgClr}")
endfunction()
function(log_option_disabled OPTION)
message(STATUS "${MsgBold}Disabled:${MsgClr} ${MsgWar}${OPTION}${MsgClr}")
endfunction()
function(log_program_missing PROGRAM)
message(SEND_ERROR "${MsgErr}Unable to find ${PROGRAM}${MsgClr}")
endfunction()