CMP0049.rst 751 B

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