CMP0054.rst 731 B

123456789101112131415161718
  1. CMP0054
  2. -------
  3. Only interpret :command:`if` arguments as variables or keywords when unquoted.
  4. CMake 3.1 and above no longer dereference variables or interpret keywords
  5. in an :command:`if` command argument when it is a :ref:`Quoted Argument`
  6. or a :ref:`Bracket Argument`.
  7. The ``OLD`` behavior for this policy is to dereference variables and
  8. interpret keywords even if they are quoted or bracketed.
  9. The ``NEW`` behavior is to not dereference variables or interpret keywords
  10. that have been quoted or bracketed.
  11. This policy was introduced in CMake version 3.1.
  12. CMake version |release| warns when the policy is not set and uses
  13. ``OLD`` behavior. Use the :command:`cmake_policy` command to set
  14. it to ``OLD`` or ``NEW`` explicitly.