Minimal CMake if/else/endif example
if
/else
/endif
looks like this in CMake:
if(myvar)
message("if")
else()
message("else")
endif()
If this post helped you, please consider buying me a coffee or donating via PayPal to support research & publishing of new posts on TechOverflow