Skip to content

Commit 5aedf1a

Browse files
Update xcodetoolchain.rst (#4126)
1 parent 1ae86ae commit 5aedf1a

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

reference/tools/apple/xcodetoolchain.rst

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,8 @@ Those files are:
6363
files from this generator and the generated by the
6464
:ref:`XcodeDeps<conan_tools_apple_xcodedeps>` in case it was also set.
6565
- *conantoolchain_<debug/release>_x86_64.xcconfig*: declares ``CLANG_CXX_LIBRARY``,
66-
``CLANG_CXX_LANGUAGE_STANDARD`` and ``MACOSX_DEPLOYMENT_TARGET`` variables with
67-
conditional logic depending on the build configuration, architecture and sdk set.
66+
``CLANG_CXX_LANGUAGE_STANDARD`` and ``MACOSX_DEPLOYMENT_TARGET`` (when ``os`` is set to ``Macos``)
67+
variables with conditional logic depending on the build configuration, architecture and sdk set.
6868
- *conantoolchain.xcconfig*: aggregates all the *conantoolchain_<config>_<arch>.xcconfig*
6969
files for the different installed configurations.
7070
- *conan_global_flags.xcconfig*: this file will only be generated in case of any
@@ -79,9 +79,10 @@ project.
7979

8080
The XcodeToolchain files can declare the following Xcode build settings based on Conan settings values:
8181

82-
- ``MACOSX_DEPLOYMENT_TARGET`` is based on the value of the ``os.version`` setting and
83-
will make the build system to pass the flag ``-mmacosx-version-min`` with that value (if
84-
set). It defines the operating system version the binary should run into.
82+
- ``*_DEPLOYMENT_TARGET`` is based on the value of the ``os`` + ``os.version`` settings and
83+
will make the build system pass respective flag (e.g. ``MACOSX_DEPLOYMENT_TARGET`` translates to
84+
``-mmacosx-version-min`` for macOS) with that value (if set). It defines the minimum operating
85+
system version the binary should run on.
8586
- ``CLANG_CXX_LANGUAGE_STANDARD`` is based on the value of the ``compiler.cppstd`` setting
8687
that sets the C++ language standard.
8788
- ``CLANG_CXX_LIBRARY`` is based on the value of the compiler.libcxx setting and sets the

0 commit comments

Comments
 (0)