diff options
author | DongHun Kwak <dh0128.kwak@samsung.com> | 2021-10-08 09:20:58 +0900 |
---|---|---|
committer | DongHun Kwak <dh0128.kwak@samsung.com> | 2021-10-08 09:20:58 +0900 |
commit | 3257609f41111c6192158f0bf97d382406926974 (patch) | |
tree | de3d1170d37cd850edf464c70c0b3da67d0320b5 /Help/variable/CMAKE_LANG_FLAGS.rst | |
parent | 7bf65aec6825377cb70a176d71f21116f1d977df (diff) | |
download | cmake-3257609f41111c6192158f0bf97d382406926974.tar.gz cmake-3257609f41111c6192158f0bf97d382406926974.tar.bz2 cmake-3257609f41111c6192158f0bf97d382406926974.zip |
Imported Upstream version 3.21.0upstream/3.21.0
Diffstat (limited to 'Help/variable/CMAKE_LANG_FLAGS.rst')
-rw-r--r-- | Help/variable/CMAKE_LANG_FLAGS.rst | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/Help/variable/CMAKE_LANG_FLAGS.rst b/Help/variable/CMAKE_LANG_FLAGS.rst index 14b2694ef..2784397ac 100644 --- a/Help/variable/CMAKE_LANG_FLAGS.rst +++ b/Help/variable/CMAKE_LANG_FLAGS.rst @@ -15,3 +15,11 @@ This is initialized for each language from environment variables: Initialized by the :envvar:`CUDAFLAGS` environment variable. * ``CMAKE_Fortran_FLAGS``: Initialized by the :envvar:`FFLAGS` environment variable. + +This value is a command-line string fragment. Therefore, multiple options +should be separated by spaces, and options with spaces should be quoted. + +The flags in this variable will be passed to the compiler before those +in the per-configuration :variable:`CMAKE_<LANG>_FLAGS_<CONFIG>` variant, +and before flags added by the :command:`add_compile_options` or +:command:`target_compile_options` commands. |