When should I quote CMake variables?

Viewed 23633

I am writing CMake macros for the first time, and I have a hard time understanding how variables work. Most specifically, ${a} seems to have a different meaning than "${a}".

For example here: Passing a list to a CMake macro

I fail to understand when I am supposed to add quotes, and what are the bigger underlying principles.

1 Answers
Related