1CMP0066 2------- 3 4.. versionadded:: 3.7 5 6Honor per-config flags in :command:`try_compile` source-file signature. 7 8The source file signature of the :command:`try_compile` command uses the value 9of the :variable:`CMAKE_<LANG>_FLAGS` variable in the test project so that the 10test compilation works as it would in the main project. However, CMake 3.6 and 11below do not also honor config-specific compiler flags such as those in the 12:variable:`CMAKE_<LANG>_FLAGS_DEBUG` variable. CMake 3.7 and above prefer to 13honor config-specific compiler flags too. This policy provides compatibility 14for projects that do not expect config-specific compiler flags to be used. 15 16The ``OLD`` behavior of this policy is to ignore config-specific flag 17variables like :variable:`CMAKE_<LANG>_FLAGS_DEBUG` and only use CMake's 18built-in defaults for the current compiler and platform. 19 20The ``NEW`` behavior of this policy is to honor config-specific flag 21variabldes like :variable:`CMAKE_<LANG>_FLAGS_DEBUG`. 22 23This policy was introduced in CMake version 3.7. Unlike most policies, 24CMake version |release| does *not* warn by default when this policy 25is not set and simply uses ``OLD`` behavior. See documentation of the 26:variable:`CMAKE_POLICY_WARNING_CMP0066 <CMAKE_POLICY_WARNING_CMP<NNNN>>` 27variable to control the warning. 28 29.. include:: DEPRECATED.txt 30