Document and test order of flags passed to the compiler
Document in CMAKE_<LANG>_FLAGS
, COMPILE_OPTIONS
, and friends the order in which flags from each setting will be passed to the compiler relative to the others. Add a test case to verify this.