Display notification message.
Display a message informing the user of the group of features being checked.
- Parameters
-
EVAL | Literal |
CODE | literal |
CODE_BLOCK | String of cmake code to be executed |
- Note
- This is implemented as a macro so the side effects of set() take place within the scope of the caller
set(A TRUE)
set(B TRUE)
set(C TRUE)
set(condition "(A AND B) OR C")
cmake_language(EVAL CODE "
if (${condition})
message(STATUS TRUE)
else()
message(STATUS FALSE)
endif()"
)
- Author
- Edward Maros
- Date
- 2022
- Copyright
- Modified GNU General Public License, Version 2