Fixed problem with backslashes in cmake status report

This commit is contained in:
Andrey Kamaev 2012-02-23 20:05:27 +00:00
parent d7763d99de
commit aa9eeddd86

View File

@ -90,13 +90,13 @@ macro(CHECK_MODULE module_name define)
endmacro() endmacro()
# Status report macro. # Status report function.
# Automatically align right column and selects text based on condition. # Automatically align right column and selects text based on condition.
# Usage: # Usage:
# status(<text>) # status(<text>)
# status(<heading> <value1> [<value2> ...]) # status(<heading> <value1> [<value2> ...])
# status(<heading> <condition> THEN <text for TRUE> ELSE <text for FALSE> ) # status(<heading> <condition> THEN <text for TRUE> ELSE <text for FALSE> )
macro(status text) function(status text)
set(status_cond) set(status_cond)
set(status_then) set(status_then)
set(status_else) set(status_else)
@ -140,7 +140,7 @@ macro(status text)
else() else()
message(STATUS "${text}") message(STATUS "${text}")
endif() endif()
endmacro() endfunction()
# splits cmake libraries list of format "general;item1;debug;item2;release;item3" to two lists # splits cmake libraries list of format "general;item1;debug;item2;release;item3" to two lists