CMake/Help
Brad King a66004bee0 Honor CMAKE_<LANG>_FLAGS[_<CONFIG>]_INIT set in toolchain files
Document these variables.

Change our convention for setting these variables from:

    set(CMAKE_C_FLAGS_INIT "...")

to

    string(APPEND CMAKE_C_FLAGS_INIT " ...")

so that any value previously set by a toolchain file will be used.

Automate the conversion with:

    sed -i 's/set *(\(CMAKE_\(C\|CXX\|Fortran\|RC\|ASM\|${[^}]\+}\)_FLAGS\(_[^_]\+\)\?_INIT \+"\)/string(APPEND \1 /' \
      Modules/Compiler/*.cmake Modules/Platform/*.cmake

and follow up with some manual fixes (e.g. to cases that already
meant to append).  Also revert the automated changes to contexts
that are not protected from running multiple times.
2016-07-06 10:13:31 -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 Honor CMAKE_<LANG>_FLAGS[_<CONFIG>]_INIT set in toolchain files 2016-07-06 10:13:31 -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 Convert builtin help to reStructuredText source files 2013-10-15 14:12:03 -04:00
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 Honor CMAKE_<LANG>_FLAGS[_<CONFIG>]_INIT set in toolchain files 2016-07-06 10:13:31 -04:00
variable Honor CMAKE_<LANG>_FLAGS[_<CONFIG>]_INIT set in toolchain files 2016-07-06 10:13:31 -04:00
index.rst Help: Add a manual for compiler feature control. 2014-05-27 09:35:00 -04:00