diff options
author | Brad King <brad.king@kitware.com> | 2021-06-03 14:58:19 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2021-06-03 15:02:27 (GMT) |
commit | ccc83ce1623a90c9354a940370ed8c06d2fea30b (patch) | |
tree | 3412a589aa987dadd104c00d522cea15b44b7762 /Help/prop_sf | |
parent | df79fe055b010131737517c0169e4c82db42482a (diff) | |
download | CMake-ccc83ce1623a90c9354a940370ed8c06d2fea30b.zip CMake-ccc83ce1623a90c9354a940370ed8c06d2fea30b.tar.gz CMake-ccc83ce1623a90c9354a940370ed8c06d2fea30b.tar.bz2 |
Help: Document order of flags from CMAKE_<LANG>_FLAGS and COMPILE_OPTIONS
Diffstat (limited to 'Help/prop_sf')
-rw-r--r-- | Help/prop_sf/COMPILE_FLAGS.rst | 7 | ||||
-rw-r--r-- | Help/prop_sf/COMPILE_OPTIONS.rst | 7 |
2 files changed, 9 insertions, 5 deletions
diff --git a/Help/prop_sf/COMPILE_FLAGS.rst b/Help/prop_sf/COMPILE_FLAGS.rst index c211b89..eefe7bf 100644 --- a/Help/prop_sf/COMPILE_FLAGS.rst +++ b/Help/prop_sf/COMPILE_FLAGS.rst @@ -4,8 +4,11 @@ COMPILE_FLAGS Additional flags to be added when compiling this source file. The ``COMPILE_FLAGS`` property, managed as a string, sets additional compiler -flags used to build source files. Use :prop_sf:`COMPILE_DEFINITIONS` to pass -additional preprocessor definitions. +flags used that will be added to the list of compile flags when this source +file builds. The flags will be added after target-wide flags (except in +some cases not supported by the :generator:`Visual Studio 9 2008` generator). + +Use :prop_sf:`COMPILE_DEFINITIONS` to pass additional preprocessor definitions. Contents of ``COMPILE_FLAGS`` may use "generator expressions" with the syntax ``$<...>``. See the :manual:`cmake-generator-expressions(7)` diff --git a/Help/prop_sf/COMPILE_OPTIONS.rst b/Help/prop_sf/COMPILE_OPTIONS.rst index a694c3e..84c543a 100644 --- a/Help/prop_sf/COMPILE_OPTIONS.rst +++ b/Help/prop_sf/COMPILE_OPTIONS.rst @@ -5,9 +5,10 @@ COMPILE_OPTIONS List of additional options to pass to the compiler. -This property holds a :ref:`semicolon-separated list <CMake Language Lists>` of options -and will be added to the list of compile flags when this -source file builds. +This property holds a :ref:`semicolon-separated list <CMake Language Lists>` +of options and will be added to the list of compile flags when this source +file builds. The options will be added after target-wide options (except in +some cases not supported by the :generator:`Visual Studio 9 2008` generator). Contents of ``COMPILE_OPTIONS`` may use "generator expressions" with the syntax ``$<...>``. See the :manual:`cmake-generator-expressions(7)` manual |