[CMake] Bracket Argument

David Cole dlrdave at aol.com
Tue Jun 3 08:25:57 EDT 2014


> Are there some good examples of why one would use bracket arguments?


I think one of the major use cases for bracket arguments is in
"file(WRITE" so you can embed literal python code (or Lua, or
javascript, or ...) directly in the argument to the file command and
have a section of your CMakeLists that looks like an entirely different
language.

It's also a look-far-ahead feature for integrating the "CMake language"
with a "better" language, say one where arithmetic is more easily
expressed, down the line somewhere.


D





More information about the CMake mailing list