diff options
author | Alexander Borsuk <me@alex.bio> | 2024-04-16 15:59:43 (GMT) |
---|---|---|
committer | Alexander Borsuk <me@alex.bio> | 2024-04-18 15:48:59 (GMT) |
commit | 31e6017bb62ae7967fa33e58011ba1eddfb4ec44 (patch) | |
tree | 5d8a98ca588f1f284a6c7f4c78295049ed96ab56 | |
parent | 70413d2c3501fe229e9b2d46c745aca5c9f2dc4a (diff) | |
download | CMake-31e6017bb62ae7967fa33e58011ba1eddfb4ec44.zip CMake-31e6017bb62ae7967fa33e58011ba1eddfb4ec44.tar.gz CMake-31e6017bb62ae7967fa33e58011ba1eddfb4ec44.tar.bz2 |
Help: Document ObjC/ObjC++ flag variables
Signed-off-by: Alexander Borsuk <me@alex.bio>
-rw-r--r-- | Help/envvar/OBJCFLAGS.rst | 14 | ||||
-rw-r--r-- | Help/envvar/OBJCXXFLAGS.rst | 14 | ||||
-rw-r--r-- | Help/manual/cmake-env-variables.7.rst | 2 | ||||
-rw-r--r-- | Help/variable/CMAKE_LANG_FLAGS.rst | 4 |
4 files changed, 34 insertions, 0 deletions
diff --git a/Help/envvar/OBJCFLAGS.rst b/Help/envvar/OBJCFLAGS.rst new file mode 100644 index 0000000..2f30807 --- /dev/null +++ b/Help/envvar/OBJCFLAGS.rst @@ -0,0 +1,14 @@ +OBJCFLAGS +--------- + +.. versionadded:: 3.16 + +.. include:: ENV_VAR.txt + +Add default compilation flags to be used when compiling ``Objective C`` files. + +.. |CMAKE_LANG_FLAGS| replace:: :variable:`CMAKE_OBJC_FLAGS <CMAKE_<LANG>_FLAGS>` +.. |LANG| replace:: ``OBJC`` +.. include:: LANG_FLAGS.txt + +See also :variable:`CMAKE_OBJC_FLAGS_INIT <CMAKE_<LANG>_FLAGS_INIT>`. diff --git a/Help/envvar/OBJCXXFLAGS.rst b/Help/envvar/OBJCXXFLAGS.rst new file mode 100644 index 0000000..089222a --- /dev/null +++ b/Help/envvar/OBJCXXFLAGS.rst @@ -0,0 +1,14 @@ +OBJCXXFLAGS +----------- + +.. versionadded:: 3.16 + +.. include:: ENV_VAR.txt + +Add default compilation flags to be used when compiling ``Objective C++`` (.mm) files. + +.. |CMAKE_LANG_FLAGS| replace:: :variable:`CMAKE_OBJCXX_FLAGS <CMAKE_<LANG>_FLAGS>` +.. |LANG| replace:: ``OBJCXX`` +.. include:: LANG_FLAGS.txt + +See also :variable:`CMAKE_OBJCXX_FLAGS_INIT <CMAKE_<LANG>_FLAGS_INIT>`. diff --git a/Help/manual/cmake-env-variables.7.rst b/Help/manual/cmake-env-variables.7.rst index e693e4c..a69ace6 100644 --- a/Help/manual/cmake-env-variables.7.rst +++ b/Help/manual/cmake-env-variables.7.rst @@ -92,7 +92,9 @@ Environment Variables for Languages /envvar/ISPC /envvar/ISPCFLAGS /envvar/OBJC + /envvar/OBJCFLAGS /envvar/OBJCXX + /envvar/OBJCXXFLAGS /envvar/RC /envvar/RCFLAGS /envvar/SWIFTC diff --git a/Help/variable/CMAKE_LANG_FLAGS.rst b/Help/variable/CMAKE_LANG_FLAGS.rst index 909a001..4f8f469 100644 --- a/Help/variable/CMAKE_LANG_FLAGS.rst +++ b/Help/variable/CMAKE_LANG_FLAGS.rst @@ -24,6 +24,10 @@ combination with CMake's builtin defaults for the toolchain: Initialized by the :envvar:`HIPFLAGS` environment variable. * ``CMAKE_ISPC_FLAGS``: Initialized by the :envvar:`ISPCFLAGS` environment variable. +* ``CMAKE_OBJC_FLAGS``: + Initialized by the :envvar:`OBJCFLAGS` environment variable. +* ``CMAKE_OBJCXX_FLAGS``: + Initialized by the :envvar:`OBJCXXFLAGS` 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. |