igwn-cmake-macros 1.5.0
Functions
cx_cmake_language.cmake File Reference

Functions

 cx_cmake_language (EVAL CODE code_block)
 Display notification message. More...
 

Function Documentation

◆ cx_cmake_language()

cx_cmake_language ( EVAL CODE  CODE_BLOCK)

Display notification message.

Display a message informing the user of the group of features being checked.

Parameters
EVALLiteral
CODEliteral
CODE_BLOCKString 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