OPTIONS_BUILD.txt 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. ``-C <initial-cache>``
  2. Pre-load a script to populate the cache.
  3. When cmake is first run in an empty build tree, it creates a
  4. CMakeCache.txt file and populates it with customizable settings for
  5. the project. This option may be used to specify a file from which
  6. to load cache entries before the first pass through the project's
  7. cmake listfiles. The loaded entries take priority over the
  8. project's default values. The given file should be a CMake script
  9. containing SET commands that use the CACHE option, not a
  10. cache-format file.
  11. ``-D <var>:<type>=<value>``
  12. Create a cmake cache entry.
  13. When cmake is first run in an empty build tree, it creates a
  14. CMakeCache.txt file and populates it with customizable settings for
  15. the project. This option may be used to specify a setting that
  16. takes priority over the project's default value. The option may be
  17. repeated for as many cache entries as desired.
  18. ``-U <globbing_expr>``
  19. Remove matching entries from CMake cache.
  20. This option may be used to remove one or more variables from the
  21. CMakeCache.txt file, globbing expressions using * and ? are
  22. supported. The option may be repeated for as many cache entries as
  23. desired.
  24. Use with care, you can make your CMakeCache.txt non-working.
  25. ``-G <generator-name>``
  26. Specify a build system generator.
  27. CMake may support multiple native build systems on certain
  28. platforms. A generator is responsible for generating a particular
  29. build system. Possible generator names are specified in the
  30. Generators section.
  31. ``-T <toolset-name>``
  32. Specify toolset name if supported by generator.
  33. Some CMake generators support a toolset name to be given to the
  34. native build system to choose a compiler. This is supported only on
  35. specific generators:
  36. ::
  37. Visual Studio >= 10
  38. Xcode >= 3.0
  39. See native build system documentation for allowed toolset names.
  40. ``-A <platform-name>``
  41. Specify platform name if supported by generator.
  42. Some CMake generators support a platform name to be given to the
  43. native build system to choose a compiler or SDK. This is supported only on
  44. specific generators::
  45. Visual Studio >= 8
  46. See native build system documentation for allowed platform names.
  47. ``-Wno-dev``
  48. Suppress developer warnings.
  49. Suppress warnings that are meant for the author of the
  50. CMakeLists.txt files.
  51. ``-Wdev``
  52. Enable developer warnings.
  53. Enable warnings that are meant for the author of the CMakeLists.txt
  54. files.