if — CMake 3.23.0-rc3 Documentation
cmake.org › cmake › helpif — CMake 3.23.0-rc2 Documentation if ¶ Conditionally execute a group of commands. Synopsis ¶ if (<condition>) <commands> elseif (<condition>) # optional block, can be repeated <commands> else () # optional block <commands> endif () Evaluates the condition argument of the if clause according to the Condition syntax described below.
[CMake] Bug in if/else/endif in combination with option?
cmake.org › pipermail › cmakeMar 31, 2009 · Previous message: [CMake] Bug in if/else/endif in combination with option? CMake if commands are interesting in the sense that variable names can be used directly. In most other languages you have to explicitly dereference the variable to get the value out. I think when you use a string that is the same name as a variable you are getting ...