CMP0049.rst 683 B

123456789101112131415161718192021222324
  1. CMP0049
  2. -------
  3. Do not expand variables in target source entries.
  4. CMake 2.8.12 and lower performed an extra layer of variable expansion
  5. when evaluating source file names::
  6. set(a_source foo.c)
  7. add_executable(foo \${a_source})
  8. .. note: no cmake highlighting since this syntax is deprecated
  9. This was undocumented behavior.
  10. The ``OLD`` behavior for this policy is to expand such variables when processing
  11. the target sources. The ``NEW`` behavior for this policy is to issue an error
  12. if such variables need to be expanded.
  13. .. |INTRODUCED_IN_CMAKE_VERSION| replace:: 3.0
  14. .. |WARNS_OR_DOES_NOT_WARN| replace:: warns
  15. .. include:: STANDARD_ADVICE.txt
  16. .. include:: DEPRECATED.txt