1
0
mirror of https://github.com/Kitware/CMake.git synced 2025-10-14 02:08:27 +08:00

Help: Document ObjC/ObjC++ flag variables

Signed-off-by: Alexander Borsuk <me@alex.bio>
This commit is contained in:
Alexander Borsuk
2024-04-16 11:59:43 -04:00
parent 70413d2c35
commit 31e6017bb6
4 changed files with 34 additions and 0 deletions

14
Help/envvar/OBJCFLAGS.rst Normal file
View File

@@ -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>`.

View File

@@ -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>`.

View File

@@ -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

View File

@@ -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.