CMake/Help
Brad King d582c23a47 try_compile: Add policy CMP0066 to honor CMAKE_<LANG>_FLAGS_<CONFIG>
In the `try_compile` source file signature we propagate the caller's
value of `CMAKE_<LANG>_FLAGS` into the test project.  Extend this to
propagate `CMAKE_<LANG>_FLAGS_<CONFIG>` too instead of always using the
default value in the test project.  This will be useful, for example, to
allow the MSVC runtime library to be changed (e.g. `-MDd` => `-MTd`).
However, some projects may currently depend on this not being done,
so we need to activate the behavior using a policy.

This change was originally made by commit v3.6.0-rc1~160^2 (try_compile:
Honor CMAKE_<LANG>_FLAGS_<CONFIG> changes, 2016-04-11) but without the
policy and so had to be reverted during the 3.6 release candidate cycle.

Fixes #16174.
2016-06-29 09:11:02 -04:00
..
command Merge topic 'parent-scope-docs' 2016-06-13 15:19:45 -04:00
generator Deprecate Visual Studio 7 .NET 2003 generator 2016-04-28 10:09:20 -04:00
include Help: Reorganize and refine discussion of relocatable packages 2015-04-03 10:52:24 -04:00
manual try_compile: Add policy CMP0066 to honor CMAKE_<LANG>_FLAGS_<CONFIG> 2016-06-29 09:11:02 -04:00
module Merge topic 'add-FindVulkan' 2016-06-08 12:56:07 -04:00
policy try_compile: Add policy CMP0066 to honor CMAKE_<LANG>_FLAGS_<CONFIG> 2016-06-29 09:11:02 -04:00
prop_cache
prop_dir Help: Clarify VS_STARTUP_PROJECT documentation 2016-06-21 09:33:35 -04:00
prop_gbl Teach find_library and find_package to search lib32 paths (#11260) 2016-06-10 11:09:16 -04:00
prop_inst CPackWIX: Add new CPACK_STARTUP_SHORTCUTS property. 2015-02-21 18:07:36 +01:00
prop_sf VS: Add a VS_TOOL_OVERRIDE source file property 2016-06-20 10:46:14 -04:00
prop_test Help: Hyperlink properties 2016-04-27 22:38:59 +02:00
prop_tgt Merge topic 'doc-cross-reference-lang-standard-and-extensions' 2016-06-28 09:16:38 -04:00
release try_compile: Add policy CMP0066 to honor CMAKE_<LANG>_FLAGS_<CONFIG> 2016-06-29 09:11:02 -04:00
variable try_compile: Add policy CMP0066 to honor CMAKE_<LANG>_FLAGS_<CONFIG> 2016-06-29 09:11:02 -04:00
index.rst Help: Add a manual for compiler feature control. 2014-05-27 09:35:00 -04:00