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:
14
Help/envvar/OBJCFLAGS.rst
Normal file
14
Help/envvar/OBJCFLAGS.rst
Normal 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>`.
|
14
Help/envvar/OBJCXXFLAGS.rst
Normal file
14
Help/envvar/OBJCXXFLAGS.rst
Normal 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>`.
|
@@ -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
|
||||
|
@@ -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.
|
||||
|
Reference in New Issue
Block a user