Просмотр исходного кода

Help: Document OBJC and OBJCXX env vars for Objective C/C++ compilers

Brad King 5 лет назад
Родитель
Сommit
ab9be6662f
3 измененных файлов с 24 добавлено и 0 удалено
  1. 11 0
      Help/envvar/OBJC.rst
  2. 11 0
      Help/envvar/OBJCXX.rst
  3. 2 0
      Help/manual/cmake-env-variables.7.rst

+ 11 - 0
Help/envvar/OBJC.rst

@@ -0,0 +1,11 @@
+OBJC
+----
+
+.. include:: ENV_VAR.txt
+
+Preferred executable for compiling ``OBJC`` language files. Will only be used
+by CMake on the first configuration to determine ``OBJC`` compiler, after
+which the value for ``OBJC`` is stored in the cache as
+:variable:`CMAKE_OBJC_COMPILER <CMAKE_<LANG>_COMPILER>`. For any configuration
+run (including the first), the environment variable will be ignored if the
+:variable:`CMAKE_OBJC_COMPILER <CMAKE_<LANG>_COMPILER>` variable is defined.

+ 11 - 0
Help/envvar/OBJCXX.rst

@@ -0,0 +1,11 @@
+OBJCXX
+------
+
+.. include:: ENV_VAR.txt
+
+Preferred executable for compiling ``OBJCXX`` language files. Will only be used
+by CMake on the first configuration to determine ``OBJCXX`` compiler, after
+which the value for ``OBJCXX`` is stored in the cache as
+:variable:`CMAKE_OBJCXX_COMPILER <CMAKE_<LANG>_COMPILER>`. For any configuration
+run (including the first), the environment variable will be ignored if the
+:variable:`CMAKE_OBJCXX_COMPILER <CMAKE_<LANG>_COMPILER>` variable is defined.

+ 2 - 0
Help/manual/cmake-env-variables.7.rst

@@ -54,6 +54,8 @@ Environment Variables for Languages
    /envvar/CXXFLAGS
    /envvar/CXXFLAGS
    /envvar/FC
    /envvar/FC
    /envvar/FFLAGS
    /envvar/FFLAGS
+   /envvar/OBJC
+   /envvar/OBJCXX
    /envvar/RC
    /envvar/RC
    /envvar/RCFLAGS
    /envvar/RCFLAGS
    /envvar/SWIFTC
    /envvar/SWIFTC