1CMP0049 2------- 3 4Do not expand variables in target source entries. 5 6CMake 2.8.12 and lower performed an extra layer of variable expansion 7when evaluating source file names:: 8 9 set(a_source foo.c) 10 add_executable(foo \${a_source}) 11 12.. note: no cmake highlighting since this syntax is deprecated 13 14This was undocumented behavior. 15 16The ``OLD`` behavior for this policy is to expand such variables when processing 17the target sources. The ``NEW`` behavior for this policy is to issue an error 18if such variables need to be expanded. 19 20This policy was introduced in CMake version 3.0. 21CMake version |release| warns when the policy is not set and uses 22``OLD`` behavior. Use the :command:`cmake_policy` command to set 23it to ``OLD`` or ``NEW`` explicitly. 24 25.. include:: DEPRECATED.txt 26