On 01/19/2018 07:30 AM, Craig Scott wrote: > * In most cases, the various files are appending rather than prepending > to the existing contents of the XXX_FLAGS_INIT variables.
It was once just setting them. The `_INIT` variables were not originally meant to be set by project code or toolchain files at all. Only recently did we switch to appending and document them for toolchain files. The intended purpose is to accumulate *independent* flags from various sources of knowledge. Users can set the `XXX_FLAGS` cache entries directly to override whatever CMake would initialize them to. Once they are set the `_INIT` variables are ignored. > * Some platforms and compilers (e.g. IRIX, Windows-df, Generic-SDCC-C, > OSF1, CSharp flags) unilaterally set XXX_FLAGS_INIT variables. > This would discard any values a developer might set in a toolchain file, > for example. These are leftovers that were never converted to the append approach. IRIX, OSF1, and Windows-df haven't been used in years AFAIK and could likely be removed. Otherwise, see above. -Brad -- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Kitware offers various services to support the CMake community. For more information on each offering, please visit: CMake Support: http://cmake.org/cmake/help/support.html CMake Consulting: http://cmake.org/cmake/help/consulting.html CMake Training Courses: http://cmake.org/cmake/help/training.html Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Follow this link to subscribe/unsubscribe: https://cmake.org/mailman/listinfo/cmake-developers