cmDocumentVariables.cxx 75 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645
  1. #include "cmDocumentVariables.h"
  2. #include "cmake.h"
  3. void cmDocumentVariables::DefineVariables(cmake* cm)
  4. {
  5. // Subsection: variables defined by cmake, that give
  6. // information about the project, and cmake
  7. cm->DefineProperty
  8. ("CMAKE_AR", cmProperty::VARIABLE,
  9. "Name of archiving tool for static libraries.",
  10. "This specifies name of the program that creates archive "
  11. "or static libraries.",false,
  12. "Variables that Provide Information");
  13. cm->DefineProperty
  14. ("CMAKE_COMMAND", cmProperty::VARIABLE,
  15. "The full path to the cmake executable.",
  16. "This is the full path to the CMake executable cmake which is "
  17. "useful from custom commands that want to use the cmake -E "
  18. "option for portable system commands. "
  19. "(e.g. /usr/local/bin/cmake", false,
  20. "Variables that Provide Information");
  21. cm->DefineProperty
  22. ("CMAKE_BINARY_DIR", cmProperty::VARIABLE,
  23. "The path to the top level of the build tree.",
  24. "This is the full path to the top level of the current CMake "
  25. "build tree. For an in-source build, this would be the same "
  26. "as CMAKE_SOURCE_DIR. ", false,
  27. "Variables that Provide Information");
  28. cm->DefineProperty
  29. ("CMAKE_SOURCE_DIR", cmProperty::VARIABLE,
  30. "The path to the top level of the source tree.",
  31. "This is the full path to the top level of the current CMake "
  32. "source tree. For an in-source build, this would be the same "
  33. "as CMAKE_BINARY_DIR. ", false,
  34. "Variables that Provide Information");
  35. cm->DefineProperty
  36. ("CMAKE_CURRENT_BINARY_DIR", cmProperty::VARIABLE,
  37. "The path to the binary directory currently being processed.",
  38. "This the full path to the build directory that is currently "
  39. "being processed by cmake. Each directory added by "
  40. "add_subdirectory will create a binary directory in the build "
  41. "tree, and as it is being processed this variable will be set. "
  42. "For in-source builds this is the current source directory "
  43. "being processed.", false,
  44. "Variables that Provide Information");
  45. cm->DefineProperty
  46. ("CMAKE_CURRENT_SOURCE_DIR", cmProperty::VARIABLE,
  47. "The path to the source directory currently being processed.",
  48. "This the full path to the source directory that is currently "
  49. "being processed by cmake. ", false,
  50. "Variables that Provide Information");
  51. cm->DefineProperty
  52. ("CMAKE_CURRENT_LIST_FILE", cmProperty::VARIABLE,
  53. "Full path to the listfile currently being processed.",
  54. "As CMake processes the listfiles in your project this "
  55. "variable will always be set to the one currently being "
  56. "processed. "
  57. "The value has dynamic scope. "
  58. "When CMake starts processing commands in a source file "
  59. "it sets this variable to the location of the file. "
  60. "When CMake finishes processing commands from the file it "
  61. "restores the previous value. "
  62. "Therefore the value of the variable inside a macro or "
  63. "function is the file invoking the bottom-most entry on "
  64. "the call stack, not the file containing the macro or "
  65. "function definition."
  66. "\n"
  67. "See also CMAKE_PARENT_LIST_FILE.",false,
  68. "Variables that Provide Information");
  69. cm->DefineProperty
  70. ("CMAKE_CURRENT_LIST_LINE", cmProperty::VARIABLE,
  71. "The line number of the current file being processed.",
  72. "This is the line number of the file currently being"
  73. " processed by cmake.", false,
  74. "Variables that Provide Information");
  75. cm->DefineProperty
  76. ("CMAKE_CURRENT_LIST_DIR", cmProperty::VARIABLE,
  77. "Full directory of the listfile currently being processed.",
  78. "As CMake processes the listfiles in your project this "
  79. "variable will always be set to the directory where the listfile which "
  80. "is currently being processed (CMAKE_CURRENT_LIST_FILE) is located. "
  81. "The value has dynamic scope. "
  82. "When CMake starts processing commands in a source file "
  83. "it sets this variable to the directory where this file is located. "
  84. "When CMake finishes processing commands from the file it "
  85. "restores the previous value. "
  86. "Therefore the value of the variable inside a macro or "
  87. "function is the directory of the file invoking the bottom-most entry on "
  88. "the call stack, not the directory of the file containing the macro or "
  89. "function definition."
  90. "\n"
  91. "See also CMAKE_CURRENT_LIST_FILE.",false,
  92. "Variables that Provide Information");
  93. cm->DefineProperty
  94. ("CMAKE_SCRIPT_MODE_FILE", cmProperty::VARIABLE,
  95. "Full path to the -P script file currently being processed. ",
  96. "When run in -P script mode, CMake sets this variable to the full "
  97. "path of the script file. When run to configure a CMakeLists.txt "
  98. "file, this variable is not set.", false,
  99. "Variables that Provide Information");
  100. cm->DefineProperty
  101. ("CMAKE_ARGC", cmProperty::VARIABLE,
  102. "Number of command line arguments passed to CMake in script mode. ",
  103. "When run in -P script mode, CMake sets this variable to the number "
  104. "of command line arguments. See also CMAKE_ARGV0, 1, 2 ... ", false,
  105. "Variables that Provide Information");
  106. cm->DefineProperty
  107. ("CMAKE_ARGV0", cmProperty::VARIABLE,
  108. "Command line argument passed to CMake in script mode. ",
  109. "When run in -P script mode, CMake sets this variable to "
  110. "the first command line argument. It then also sets CMAKE_ARGV1, "
  111. "CMAKE_ARGV2, ... and so on, up to the number of command line arguments "
  112. "given. See also CMAKE_ARGC.", false,
  113. "Variables that Provide Information");
  114. cm->DefineProperty
  115. ("CMAKE_BUILD_TOOL", cmProperty::VARIABLE,
  116. "Tool used for the actual build process.",
  117. "This variable is set to the program that will be"
  118. " needed to build the output of CMake. If the "
  119. "generator selected was Visual Studio 6, the "
  120. "CMAKE_BUILD_TOOL will be set to msdev, for "
  121. "Unix makefiles it will be set to make or gmake, "
  122. "and for Visual Studio 7 it set to devenv. For "
  123. "Nmake Makefiles the value is nmake. This can be "
  124. "useful for adding special flags and commands based"
  125. " on the final build environment. ", false,
  126. "Variables that Provide Information");
  127. cm->DefineProperty
  128. ("CMAKE_CROSSCOMPILING", cmProperty::VARIABLE,
  129. "Is CMake currently cross compiling.",
  130. "This variable will be set to true by CMake if CMake is cross "
  131. "compiling. Specifically if the build platform is different "
  132. "from the target platform.", false,
  133. "Variables that Provide Information");
  134. cm->DefineProperty
  135. ("CMAKE_CACHEFILE_DIR", cmProperty::VARIABLE,
  136. "The directory with the CMakeCache.txt file.",
  137. "This is the full path to the directory that has the "
  138. "CMakeCache.txt file in it. This is the same as "
  139. "CMAKE_BINARY_DIR.", false,
  140. "Variables that Provide Information");
  141. cm->DefineProperty
  142. ("CMAKE_CACHE_MAJOR_VERSION", cmProperty::VARIABLE,
  143. "Major version of CMake used to create the CMakeCache.txt file",
  144. "This is stores the major version of CMake used to "
  145. "write a CMake cache file. It is only different when "
  146. "a different version of CMake is run on a previously "
  147. "created cache file.", false,
  148. "Variables that Provide Information");
  149. cm->DefineProperty
  150. ("CMAKE_CACHE_MINOR_VERSION", cmProperty::VARIABLE,
  151. "Minor version of CMake used to create the CMakeCache.txt file",
  152. "This is stores the minor version of CMake used to "
  153. "write a CMake cache file. It is only different when "
  154. "a different version of CMake is run on a previously "
  155. "created cache file.", false,
  156. "Variables that Provide Information");
  157. cm->DefineProperty
  158. ("CMAKE_CACHE_PATCH_VERSION", cmProperty::VARIABLE,
  159. "Patch version of CMake used to create the CMakeCache.txt file",
  160. "This is stores the patch version of CMake used to "
  161. "write a CMake cache file. It is only different when "
  162. "a different version of CMake is run on a previously "
  163. "created cache file.", false,
  164. "Variables that Provide Information");
  165. cm->DefineProperty
  166. ("CMAKE_CFG_INTDIR", cmProperty::VARIABLE,
  167. "Build-time reference to per-configuration output subdirectory.",
  168. "For native build systems supporting multiple configurations "
  169. "in the build tree (such as Visual Studio and Xcode), "
  170. "the value is a reference to a build-time variable specifying "
  171. "the name of the per-configuration output subdirectory. "
  172. "On Makefile generators this evaluates to \".\" because there "
  173. "is only one configuration in a build tree. "
  174. "Example values:\n"
  175. " $(IntDir) = Visual Studio 6\n"
  176. " $(OutDir) = Visual Studio 7, 8, 9\n"
  177. " $(Configuration) = Visual Studio 10\n"
  178. " $(CONFIGURATION) = Xcode\n"
  179. " . = Make-based tools\n"
  180. "Since these values are evaluated by the native build system, this "
  181. "variable is suitable only for use in command lines that will be "
  182. "evaluated at build time. "
  183. "Example of intended usage:\n"
  184. " add_executable(mytool mytool.c)\n"
  185. " add_custom_command(\n"
  186. " OUTPUT out.txt\n"
  187. " COMMAND ${CMAKE_CURRENT_BINARY_DIR}/${CMAKE_CFG_INTDIR}/mytool\n"
  188. " ${CMAKE_CURRENT_SOURCE_DIR}/in.txt out.txt\n"
  189. " DEPENDS mytool in.txt\n"
  190. " )\n"
  191. " add_custom_target(drive ALL DEPENDS out.txt)\n"
  192. "Note that CMAKE_CFG_INTDIR is no longer necessary for this purpose "
  193. "but has been left for compatibility with existing projects. "
  194. "Instead add_custom_command() recognizes executable target names in "
  195. "its COMMAND option, so "
  196. "\"${CMAKE_CURRENT_BINARY_DIR}/${CMAKE_CFG_INTDIR}/mytool\" can be "
  197. "replaced by just \"mytool\"."
  198. "\n"
  199. "This variable is read-only. Setting it is undefined behavior. "
  200. "In multi-configuration build systems the value of this variable "
  201. "is passed as the value of preprocessor symbol \"CMAKE_INTDIR\" to "
  202. "the compilation of all source files.",false,
  203. "Variables that Provide Information");
  204. cm->DefineProperty
  205. ("CMAKE_CTEST_COMMAND", cmProperty::VARIABLE,
  206. "Full path to ctest command installed with cmake.",
  207. "This is the full path to the CTest executable ctest "
  208. "which is useful from custom commands that want "
  209. " to use the cmake -E option for portable system "
  210. "commands.",false,
  211. "Variables that Provide Information");
  212. cm->DefineProperty
  213. ("CMAKE_DL_LIBS", cmProperty::VARIABLE,
  214. "Name of library containing dlopen and dlcose.",
  215. "The name of the library that has dlopen and "
  216. "dlclose in it, usually -ldl on most UNIX machines.",false,
  217. "Variables that Provide Information");
  218. cm->DefineProperty
  219. ("CMAKE_EDIT_COMMAND", cmProperty::VARIABLE,
  220. "Full path to cmake-gui or ccmake.",
  221. "This is the full path to the CMake executable "
  222. "that can graphically edit the cache. For example,"
  223. " cmake-gui, ccmake, or cmake -i.",false,
  224. "Variables that Provide Information");
  225. cm->DefineProperty
  226. ("CMAKE_GENERATOR", cmProperty::VARIABLE,
  227. "The generator used to build the project.",
  228. "The name of the generator that is being used to generate the "
  229. "build files. (e.g. \"Unix Makefiles\", "
  230. "\"Visual Studio 6\", etc.)",false,
  231. "Variables that Provide Information");
  232. cm->DefineProperty
  233. ("CMAKE_EXTRA_GENERATOR", cmProperty::VARIABLE,
  234. "The extra generator used to build the project.",
  235. "When using the Eclipse, CodeBlocks or KDevelop generators, CMake "
  236. "generates Makefiles (CMAKE_GENERATOR) and additionally project files "
  237. "for the respective IDE. This IDE project file generator is stored in "
  238. "CMAKE_EXTRA_GENERATOR (e.g. \"Eclipse CDT4\").",false,
  239. "Variables that Provide Information");
  240. cm->DefineProperty
  241. ("CMAKE_HOME_DIRECTORY", cmProperty::VARIABLE,
  242. "Path to top of source tree.",
  243. "This is the path to the top level of the source tree.",false,
  244. "Variables that Provide Information");
  245. cm->DefineProperty
  246. ("CMAKE_LINK_LIBRARY_SUFFIX", cmProperty::VARIABLE,
  247. "The suffix for libraries that you link to.",
  248. "The suffix to use for the end of a library, .lib on Windows.",false,
  249. "Variables that Provide Information");
  250. cm->DefineProperty
  251. ("CMAKE_EXECUTABLE_SUFFIX", cmProperty::VARIABLE,
  252. "The suffix for executables on this platform.",
  253. "The suffix to use for the end of an executable if any, "
  254. ".exe on Windows."
  255. "\n"
  256. "CMAKE_EXECUTABLE_SUFFIX_<LANG> overrides this for language <LANG>."
  257. ,false, "Variables that Provide Information");
  258. cm->DefineProperty
  259. ("CMAKE_MAJOR_VERSION", cmProperty::VARIABLE,
  260. "The Major version of cmake (i.e. the 2 in 2.X.X)",
  261. "This specifies the major version of the CMake executable"
  262. " being run.",false,
  263. "Variables that Provide Information");
  264. cm->DefineProperty
  265. ("CMAKE_MAKE_PROGRAM", cmProperty::VARIABLE,
  266. "See CMAKE_BUILD_TOOL.",
  267. "This variable is around for backwards compatibility, "
  268. "see CMAKE_BUILD_TOOL.",false,
  269. "Variables that Provide Information");
  270. cm->DefineProperty
  271. ("CMAKE_MINOR_VERSION", cmProperty::VARIABLE,
  272. "The Minor version of cmake (i.e. the 4 in X.4.X).",
  273. "This specifies the minor version of the CMake"
  274. " executable being run.",false,
  275. "Variables that Provide Information");
  276. cm->DefineProperty
  277. ("CMAKE_PATCH_VERSION", cmProperty::VARIABLE,
  278. "The patch version of cmake (i.e. the 3 in X.X.3).",
  279. "This specifies the patch version of the CMake"
  280. " executable being run.",false,
  281. "Variables that Provide Information");
  282. cm->DefineProperty
  283. ("CMAKE_TWEAK_VERSION", cmProperty::VARIABLE,
  284. "The tweak version of cmake (i.e. the 1 in X.X.X.1).",
  285. "This specifies the tweak version of the CMake executable being run. "
  286. "Releases use tweak < 20000000 and development versions use the date "
  287. "format CCYYMMDD for the tweak level."
  288. ,false, "Variables that Provide Information");
  289. cm->DefineProperty
  290. ("CMAKE_VERSION", cmProperty::VARIABLE,
  291. "The full version of cmake in major.minor.patch[.tweak[-id]] format.",
  292. "This specifies the full version of the CMake executable being run. "
  293. "This variable is defined by versions 2.6.3 and higher. "
  294. "See variables CMAKE_MAJOR_VERSION, CMAKE_MINOR_VERSION, "
  295. "CMAKE_PATCH_VERSION, and CMAKE_TWEAK_VERSION "
  296. "for individual version components. "
  297. "The [-id] component appears in non-release versions "
  298. "and may be arbitrary text.", false,
  299. "Variables that Provide Information");
  300. cm->DefineProperty
  301. ("CMAKE_PARENT_LIST_FILE", cmProperty::VARIABLE,
  302. "Full path to the parent listfile of the one currently being processed.",
  303. "As CMake processes the listfiles in your project this "
  304. "variable will always be set to the listfile that included "
  305. "or somehow invoked the one currently being "
  306. "processed. See also CMAKE_CURRENT_LIST_FILE.",false,
  307. "Variables that Provide Information");
  308. cm->DefineProperty
  309. ("CMAKE_PROJECT_NAME", cmProperty::VARIABLE,
  310. "The name of the current project.",
  311. "This specifies name of the current project from"
  312. " the closest inherited PROJECT command.",false,
  313. "Variables that Provide Information");
  314. cm->DefineProperty
  315. ("CMAKE_RANLIB", cmProperty::VARIABLE,
  316. "Name of randomizing tool for static libraries.",
  317. "This specifies name of the program that randomizes "
  318. "libraries on UNIX, not used on Windows, but may be present.",false,
  319. "Variables that Provide Information");
  320. cm->DefineProperty
  321. ("CMAKE_ROOT", cmProperty::VARIABLE,
  322. "Install directory for running cmake.",
  323. "This is the install root for the running CMake and"
  324. " the Modules directory can be found here. This is"
  325. " commonly used in this format: ${CMAKE_ROOT}/Modules",false,
  326. "Variables that Provide Information");
  327. cm->DefineProperty
  328. ("CMAKE_SIZEOF_VOID_P", cmProperty::VARIABLE,
  329. "Size of a void pointer.",
  330. "This is set to the size of a pointer on the machine, "
  331. "and is determined by a try compile. If a 64 bit size "
  332. "is found, then the library search path is modified to "
  333. "look for 64 bit libraries first.",false,
  334. "Variables that Provide Information");
  335. cm->DefineProperty
  336. ("CMAKE_SKIP_RPATH", cmProperty::VARIABLE,
  337. "If true, do not add run time path information.",
  338. "If this is set to TRUE, then the rpath information "
  339. "is not added to compiled executables. The default "
  340. "is to add rpath information if the platform supports it."
  341. "This allows for easy running from the build tree.",false,
  342. "Variables that Provide Information");
  343. cm->DefineProperty
  344. ("CMAKE_SOURCE_DIR", cmProperty::VARIABLE,
  345. "Source directory for project.",
  346. "This is the top level source directory for the project. "
  347. "It corresponds to the source directory given to "
  348. "cmake-gui or ccmake.",false,
  349. "Variables that Provide Information");
  350. cm->DefineProperty
  351. ("CMAKE_STANDARD_LIBRARIES", cmProperty::VARIABLE,
  352. "Libraries linked into every executable and shared library.",
  353. "This is the list of libraries that are linked "
  354. "into all executables and libraries.",false,
  355. "Variables that Provide Information");
  356. cm->DefineProperty
  357. ("CMAKE_USING_VC_FREE_TOOLS", cmProperty::VARIABLE,
  358. "True if free visual studio tools being used.",
  359. "This is set to true if the compiler is Visual "
  360. "Studio free tools.",false,
  361. "Variables that Provide Information");
  362. cm->DefineProperty
  363. ("CMAKE_VERBOSE_MAKEFILE", cmProperty::VARIABLE,
  364. "Create verbose makefiles if on.",
  365. "This variable defaults to false. You can set "
  366. "this variable to true to make CMake produce verbose "
  367. "makefiles that show each command line as it is used.",false,
  368. "Variables that Provide Information");
  369. cm->DefineProperty
  370. ("PROJECT_BINARY_DIR", cmProperty::VARIABLE,
  371. "Full path to build directory for project.",
  372. "This is the binary directory of the most recent "
  373. "PROJECT command.",false,"Variables that Provide Information");
  374. cm->DefineProperty
  375. ("PROJECT_NAME", cmProperty::VARIABLE,
  376. "Name of the project given to the project command.",
  377. "This is the name given to the most "
  378. "recent PROJECT command. ",false,
  379. "Variables that Provide Information");
  380. cm->DefineProperty
  381. ("PROJECT_SOURCE_DIR", cmProperty::VARIABLE,
  382. "Top level source directory for the current project.",
  383. "This is the source directory of the most recent "
  384. "PROJECT command.",false,
  385. "Variables that Provide Information");
  386. cm->DefineProperty
  387. ("[Project name]_BINARY_DIR", cmProperty::VARIABLE,
  388. "Top level binary directory for the named project.",
  389. "A variable is created with the name used in the PROJECT "
  390. "command, and is the binary directory for the project. "
  391. " This can be useful when SUBDIR is used to connect "
  392. "several projects.",false,
  393. "Variables that Provide Information");
  394. cm->DefineProperty
  395. ("[Project name]_SOURCE_DIR", cmProperty::VARIABLE,
  396. "Top level source directory for the named project.",
  397. "A variable is created with the name used in the PROJECT "
  398. "command, and is the source directory for the project."
  399. " This can be useful when add_subdirectory "
  400. "is used to connect several projects.",false,
  401. "Variables that Provide Information");
  402. cm->DefineProperty
  403. ("CMAKE_IMPORT_LIBRARY_PREFIX", cmProperty::VARIABLE,
  404. "The prefix for import libraries that you link to.",
  405. "The prefix to use for the name of an import library if used "
  406. "on this platform."
  407. "\n"
  408. "CMAKE_IMPORT_LIBRARY_PREFIX_<LANG> overrides this for language <LANG>."
  409. ,false, "Variables that Provide Information");
  410. cm->DefineProperty
  411. ("CMAKE_IMPORT_LIBRARY_SUFFIX", cmProperty::VARIABLE,
  412. "The suffix for import libraries that you link to.",
  413. "The suffix to use for the end of an import library if used "
  414. "on this platform."
  415. "\n"
  416. "CMAKE_IMPORT_LIBRARY_SUFFIX_<LANG> overrides this for language <LANG>."
  417. ,false, "Variables that Provide Information");
  418. cm->DefineProperty
  419. ("CMAKE_SHARED_LIBRARY_PREFIX", cmProperty::VARIABLE,
  420. "The prefix for shared libraries that you link to.",
  421. "The prefix to use for the name of a shared library, lib on UNIX."
  422. "\n"
  423. "CMAKE_SHARED_LIBRARY_PREFIX_<LANG> overrides this for language <LANG>."
  424. ,false, "Variables that Provide Information");
  425. cm->DefineProperty
  426. ("CMAKE_SHARED_LIBRARY_SUFFIX", cmProperty::VARIABLE,
  427. "The suffix for shared libraries that you link to.",
  428. "The suffix to use for the end of a shared library, .dll on Windows."
  429. "\n"
  430. "CMAKE_SHARED_LIBRARY_SUFFIX_<LANG> overrides this for language <LANG>."
  431. ,false, "Variables that Provide Information");
  432. cm->DefineProperty
  433. ("CMAKE_SHARED_MODULE_PREFIX", cmProperty::VARIABLE,
  434. "The prefix for loadable modules that you link to.",
  435. "The prefix to use for the name of a loadable module on this platform."
  436. "\n"
  437. "CMAKE_SHARED_MODULE_PREFIX_<LANG> overrides this for language <LANG>."
  438. ,false, "Variables that Provide Information");
  439. cm->DefineProperty
  440. ("CMAKE_SHARED_MODULE_SUFFIX", cmProperty::VARIABLE,
  441. "The suffix for shared libraries that you link to.",
  442. "The suffix to use for the end of a loadable module on this platform"
  443. "\n"
  444. "CMAKE_SHARED_MODULE_SUFFIX_<LANG> overrides this for language <LANG>."
  445. ,false, "Variables that Provide Information");
  446. cm->DefineProperty
  447. ("CMAKE_STATIC_LIBRARY_PREFIX", cmProperty::VARIABLE,
  448. "The prefix for static libraries that you link to.",
  449. "The prefix to use for the name of a static library, lib on UNIX."
  450. "\n"
  451. "CMAKE_STATIC_LIBRARY_PREFIX_<LANG> overrides this for language <LANG>."
  452. ,false, "Variables that Provide Information");
  453. cm->DefineProperty
  454. ("CMAKE_STATIC_LIBRARY_SUFFIX", cmProperty::VARIABLE,
  455. "The suffix for static libraries that you link to.",
  456. "The suffix to use for the end of a static library, .lib on Windows."
  457. "\n"
  458. "CMAKE_STATIC_LIBRARY_SUFFIX_<LANG> overrides this for language <LANG>."
  459. ,false, "Variables that Provide Information");
  460. cm->DefineProperty
  461. ("CMAKE_EXTRA_SHARED_LIBRARY_SUFFIXES", cmProperty::VARIABLE,
  462. "Additional suffixes for shared libraries.",
  463. "Extensions for shared libraries other than that specified by "
  464. "CMAKE_SHARED_LIBRARY_SUFFIX, if any. "
  465. "CMake uses this to recognize external shared library files during "
  466. "analysis of libraries linked by a target.",
  467. false,
  468. "Variables that Provide Information");
  469. // Variables defined by cmake, that change the behavior
  470. // of cmake
  471. cm->DefineProperty
  472. ("CMAKE_POLICY_DEFAULT_CMP<NNNN>", cmProperty::VARIABLE,
  473. "Default for CMake Policy CMP<NNNN> when it is otherwise left unset.",
  474. "Commands cmake_minimum_required(VERSION) and cmake_policy(VERSION) "
  475. "by default leave policies introduced after the given version unset. "
  476. "Set CMAKE_POLICY_DEFAULT_CMP<NNNN> to OLD or NEW to specify the "
  477. "default for policy CMP<NNNN>, where <NNNN> is the policy number."
  478. "\n"
  479. "This variable should not be set by a project in CMake code; "
  480. "use cmake_policy(SET) instead. "
  481. "Users running CMake may set this variable in the cache "
  482. "(e.g. -DCMAKE_POLICY_DEFAULT_CMP<NNNN>=<OLD|NEW>) "
  483. "to set a policy not otherwise set by the project. "
  484. "Set to OLD to quiet a policy warning while using old behavior "
  485. "or to NEW to try building the project with new behavior.",
  486. false,
  487. "Variables That Change Behavior");
  488. cm->DefineProperty
  489. ("CMAKE_AUTOMOC_STRICT_MODE", cmProperty::VARIABLE,
  490. "Switch between strict and relaxed automoc mode.",
  491. "When TRUE, automoc behaves exactly as described in the documentation "
  492. "of the AUTOMOC target property. "
  493. "When set to FALSE, it accepts more input and tries to find the correct "
  494. "input file for moc even if it differs from the documented behaviour. "
  495. "In this mode it e.g. also checks whether a header file is intended to "
  496. "be processed by moc when a \"foo.moc\" file has been included.\n"
  497. "When using Qt4, CMAKE_AUTOMOC_STRICT_MODE is initialized to FALSE. "
  498. "It also has to be set to FALSE for KDE4 compatibility.",
  499. false,
  500. "Variables That Change Behavior");
  501. cm->DefineProperty
  502. ("CMAKE_FIND_LIBRARY_PREFIXES", cmProperty::VARIABLE,
  503. "Prefixes to prepend when looking for libraries.",
  504. "This specifies what prefixes to add to library names when "
  505. "the find_library command looks for libraries. On UNIX "
  506. "systems this is typically lib, meaning that when trying "
  507. "to find the foo library it will look for libfoo.",
  508. false,
  509. "Variables That Change Behavior");
  510. cm->DefineProperty
  511. ("CMAKE_FIND_LIBRARY_SUFFIXES", cmProperty::VARIABLE,
  512. "Suffixes to append when looking for libraries.",
  513. "This specifies what suffixes to add to library names when "
  514. "the find_library command looks for libraries. On Windows "
  515. "systems this is typically .lib and .dll, meaning that when trying "
  516. "to find the foo library it will look for foo.dll etc.",
  517. false,
  518. "Variables That Change Behavior");
  519. cm->DefineProperty
  520. ("CMAKE_CONFIGURATION_TYPES", cmProperty::VARIABLE,
  521. "Specifies the available build types.",
  522. "This specifies what build types will be available such as "
  523. "Debug, Release, RelWithDebInfo etc. This has reasonable defaults "
  524. "on most platforms. But can be extended to provide other "
  525. "build types. See also CMAKE_BUILD_TYPE.",
  526. false,
  527. "Variables That Change Behavior");
  528. cm->DefineProperty
  529. ("CMAKE_BUILD_TYPE", cmProperty::VARIABLE,
  530. "Specifies the build type for make based generators.",
  531. "This specifies what build type will be built in this tree. "
  532. " Possible values are empty, Debug, Release, RelWithDebInfo"
  533. " and MinSizeRel. This variable is only supported for "
  534. "make based generators. If this variable is supported, "
  535. "then CMake will also provide initial values for the "
  536. "variables with the name "
  537. " CMAKE_C_FLAGS_[DEBUG|RELEASE|RELWITHDEBINFO|MINSIZEREL]."
  538. " For example, if CMAKE_BUILD_TYPE is Debug, then "
  539. "CMAKE_C_FLAGS_DEBUG will be added to the CMAKE_C_FLAGS.",false,
  540. "Variables That Change Behavior");
  541. cm->DefineProperty
  542. ("CMAKE_BACKWARDS_COMPATIBILITY", cmProperty::VARIABLE,
  543. "Version of cmake required to build project",
  544. "From the point of view of backwards compatibility, this "
  545. "specifies what version of CMake should be supported. By "
  546. "default this value is the version number of CMake that "
  547. "you are running. You can set this to an older version of"
  548. " CMake to support deprecated commands of CMake in projects"
  549. " that were written to use older versions of CMake. This "
  550. "can be set by the user or set at the beginning of a "
  551. "CMakeLists file.",false,
  552. "Variables That Change Behavior");
  553. cm->DefineProperty
  554. ("CMAKE_INSTALL_PREFIX", cmProperty::VARIABLE,
  555. "Install directory used by install.",
  556. "If \"make install\" is invoked or INSTALL is built"
  557. ", this directory is pre-pended onto all install "
  558. "directories. This variable defaults to /usr/local"
  559. " on UNIX and c:/Program Files on Windows.",false,
  560. "Variables That Change Behavior");
  561. cm->DefineProperty
  562. ("CMAKE_SKIP_INSTALL_ALL_DEPENDENCY", cmProperty::VARIABLE,
  563. "Don't make the install target depend on the all target.",
  564. "By default, the \"install\" target depends on the \"all\" target. "
  565. "This has the effect, that when \"make install\" is invoked or INSTALL "
  566. "is built, first the \"all\" target is built, then the installation "
  567. "starts. "
  568. "If CMAKE_SKIP_INSTALL_ALL_DEPENDENCY is set to TRUE, this dependency "
  569. "is not created, so the installation process will start immediately, "
  570. "independent from whether the project has been completely built or not."
  571. ,false,
  572. "Variables That Change Behavior");
  573. cm->DefineProperty
  574. ("CMAKE_MODULE_PATH", cmProperty::VARIABLE,
  575. "List of directories to search for CMake modules.",
  576. "Commands like include() and find_package() search for files in "
  577. "directories listed by this variable before checking the default "
  578. "modules that come with CMake.",
  579. false,
  580. "Variables That Change Behavior");
  581. cm->DefineProperty
  582. ("CMAKE_PREFIX_PATH", cmProperty::VARIABLE,
  583. "Path used for searching by FIND_XXX(), with appropriate suffixes added.",
  584. "Specifies a path which will be used by the FIND_XXX() commands. It "
  585. "contains the \"base\" directories, the FIND_XXX() commands append "
  586. "appropriate subdirectories to the base directories. So FIND_PROGRAM() "
  587. "adds /bin to each of the directories in the path, FIND_LIBRARY() "
  588. "appends /lib to each of the directories, and FIND_PATH() and "
  589. "FIND_FILE() append /include . By default it is empty, it is intended "
  590. "to be set by the project. See also CMAKE_SYSTEM_PREFIX_PATH, "
  591. "CMAKE_INCLUDE_PATH, CMAKE_LIBRARY_PATH, CMAKE_PROGRAM_PATH.", false,
  592. "Variables That Change Behavior");
  593. cm->DefineProperty
  594. ("CMAKE_INCLUDE_PATH", cmProperty::VARIABLE,
  595. "Path used for searching by FIND_FILE() and FIND_PATH().",
  596. "Specifies a path which will be used both by FIND_FILE() and "
  597. "FIND_PATH(). Both commands will check each of the contained directories "
  598. "for the existence of the file which is currently searched. By default "
  599. "it is empty, it is intended to be set by the project. See also "
  600. "CMAKE_SYSTEM_INCLUDE_PATH, CMAKE_PREFIX_PATH.", false,
  601. "Variables That Change Behavior");
  602. cm->DefineProperty
  603. ("CMAKE_LIBRARY_PATH", cmProperty::VARIABLE,
  604. "Path used for searching by FIND_LIBRARY().",
  605. "Specifies a path which will be used by FIND_LIBRARY(). FIND_LIBRARY() "
  606. "will check each of the contained directories for the existence of the "
  607. "library which is currently searched. By default it is empty, it is "
  608. "intended to be set by the project. See also CMAKE_SYSTEM_LIBRARY_PATH, "
  609. "CMAKE_PREFIX_PATH.", false,
  610. "Variables That Change Behavior");
  611. cm->DefineProperty
  612. ("CMAKE_PROGRAM_PATH", cmProperty::VARIABLE,
  613. "Path used for searching by FIND_PROGRAM().",
  614. "Specifies a path which will be used by FIND_PROGRAM(). FIND_PROGRAM() "
  615. "will check each of the contained directories for the existence of the "
  616. "program which is currently searched. By default it is empty, it is "
  617. "intended to be set by the project. See also CMAKE_SYSTEM_PROGRAM_PATH, "
  618. " CMAKE_PREFIX_PATH.", false,
  619. "Variables That Change Behavior");
  620. cm->DefineProperty
  621. ("CMAKE_SYSTEM_PREFIX_PATH", cmProperty::VARIABLE,
  622. "Path used for searching by FIND_XXX(), with appropriate suffixes added.",
  623. "Specifies a path which will be used by the FIND_XXX() commands. It "
  624. "contains the \"base\" directories, the FIND_XXX() commands append "
  625. "appropriate subdirectories to the base directories. So FIND_PROGRAM() "
  626. "adds /bin to each of the directories in the path, FIND_LIBRARY() "
  627. "appends /lib to each of the directories, and FIND_PATH() and "
  628. "FIND_FILE() append /include . By default this contains the standard "
  629. "directories for the current system. It is NOT intended "
  630. "to be modified by the project, use CMAKE_PREFIX_PATH for this. See also "
  631. "CMAKE_SYSTEM_INCLUDE_PATH, CMAKE_SYSTEM_LIBRARY_PATH, "
  632. "CMAKE_SYSTEM_PROGRAM_PATH, and CMAKE_SYSTEM_IGNORE_PATH.", false,
  633. "Variables That Change Behavior");
  634. cm->DefineProperty
  635. ("CMAKE_SYSTEM_IGNORE_PATH", cmProperty::VARIABLE,
  636. "Path to be ignored by FIND_XXX() commands.",
  637. "Specifies directories to be ignored by searches in FIND_XXX() commands "
  638. "This is useful in cross-compiled environments where some system "
  639. "directories contain incompatible but possibly linkable libraries. For "
  640. "example, on cross-compiled cluster environments, this allows a user to "
  641. "ignore directories containing libraries meant for the front-end "
  642. "machine that modules like FindX11 (and others) would normally search. "
  643. "By default this contains a list of directories containing incompatible "
  644. "binaries for the host system. "
  645. "See also CMAKE_SYSTEM_PREFIX_PATH, CMAKE_SYSTEM_LIBRARY_PATH, "
  646. "CMAKE_SYSTEM_INCLUDE_PATH, and CMAKE_SYSTEM_PROGRAM_PATH.", false,
  647. "Variables That Change Behavior");
  648. cm->DefineProperty
  649. ("CMAKE_IGNORE_PATH", cmProperty::VARIABLE,
  650. "Path to be ignored by FIND_XXX() commands.",
  651. "Specifies directories to be ignored by searches in FIND_XXX() commands "
  652. "This is useful in cross-compiled environments where some system "
  653. "directories contain incompatible but possibly linkable libraries. For "
  654. "example, on cross-compiled cluster environments, this allows a user to "
  655. "ignore directories containing libraries meant for the front-end "
  656. "machine that modules like FindX11 (and others) would normally search. "
  657. "By default this is empty; it is intended to be set by the project. "
  658. "Note that CMAKE_IGNORE_PATH takes a list of directory names, NOT a "
  659. "list of prefixes. If you want to ignore paths under prefixes (bin, "
  660. "include, lib, etc.), you'll need to specify them explicitly. "
  661. "See also CMAKE_PREFIX_PATH, CMAKE_LIBRARY_PATH, CMAKE_INCLUDE_PATH, "
  662. "CMAKE_PROGRAM_PATH.", false,
  663. "Variables That Change Behavior");
  664. cm->DefineProperty
  665. ("CMAKE_SYSTEM_INCLUDE_PATH", cmProperty::VARIABLE,
  666. "Path used for searching by FIND_FILE() and FIND_PATH().",
  667. "Specifies a path which will be used both by FIND_FILE() and "
  668. "FIND_PATH(). Both commands will check each of the contained directories "
  669. "for the existence of the file which is currently searched. By default "
  670. "it contains the standard directories for the current system. It is "
  671. "NOT intended to be modified by the project, use CMAKE_INCLUDE_PATH "
  672. "for this. See also CMAKE_SYSTEM_PREFIX_PATH.", false,
  673. "Variables That Change Behavior");
  674. cm->DefineProperty
  675. ("CMAKE_SYSTEM_LIBRARY_PATH", cmProperty::VARIABLE,
  676. "Path used for searching by FIND_LIBRARY().",
  677. "Specifies a path which will be used by FIND_LIBRARY(). FIND_LIBRARY() "
  678. "will check each of the contained directories for the existence of the "
  679. "library which is currently searched. By default it contains the "
  680. "standard directories for the current system. It is NOT intended to be "
  681. "modified by the project, use CMAKE_LIBRARY_PATH for this. See "
  682. "also CMAKE_SYSTEM_PREFIX_PATH.", false,
  683. "Variables That Change Behavior");
  684. cm->DefineProperty
  685. ("CMAKE_SYSTEM_PROGRAM_PATH", cmProperty::VARIABLE,
  686. "Path used for searching by FIND_PROGRAM().",
  687. "Specifies a path which will be used by FIND_PROGRAM(). FIND_PROGRAM() "
  688. "will check each of the contained directories for the existence of the "
  689. "program which is currently searched. By default it contains the "
  690. "standard directories for the current system. It is NOT intended to be "
  691. "modified by the project, use CMAKE_PROGRAM_PATH for this. See also "
  692. "CMAKE_SYSTEM_PREFIX_PATH.", false,
  693. "Variables That Change Behavior");
  694. cm->DefineProperty
  695. ("CMAKE_DISABLE_FIND_PACKAGE_<PackageName>", cmProperty::VARIABLE,
  696. "Variable for disabling find_package() calls.",
  697. "Every non-REQUIRED find_package() call in a project can be disabled "
  698. "by setting the variable CMAKE_DISABLE_FIND_PACKAGE_<PackageName> to "
  699. "TRUE. This can be used to build a project without an optional package, "
  700. "although that package is installed.\n"
  701. "This switch should be used during the initial CMake run. Otherwise if "
  702. "the package has already been found in a previous CMake run, the "
  703. "variables which have been stored in the cache will still be there. "
  704. "In the case it is recommended to remove the cache variables for "
  705. "this package from the cache using the cache editor or cmake -U", false,
  706. "Variables That Change Behavior");
  707. cm->DefineProperty
  708. ("CMAKE_USER_MAKE_RULES_OVERRIDE", cmProperty::VARIABLE,
  709. "Specify a CMake file that overrides platform information.",
  710. "CMake loads the specified file while enabling support for each "
  711. "language from either the project() or enable_language() commands. "
  712. "It is loaded after CMake's builtin compiler and platform information "
  713. "modules have been loaded but before the information is used. "
  714. "The file may set platform information variables to override CMake's "
  715. "defaults."
  716. "\n"
  717. "This feature is intended for use only in overriding information "
  718. "variables that must be set before CMake builds its first test "
  719. "project to check that the compiler for a language works. "
  720. "It should not be used to load a file in cases that a normal include() "
  721. "will work. "
  722. "Use it only as a last resort for behavior that cannot be achieved "
  723. "any other way. "
  724. "For example, one may set CMAKE_C_FLAGS_INIT to change the default "
  725. "value used to initialize CMAKE_C_FLAGS before it is cached. "
  726. "The override file should NOT be used to set anything that could "
  727. "be set after languages are enabled, such as variables like "
  728. "CMAKE_RUNTIME_OUTPUT_DIRECTORY that affect the placement of binaries. "
  729. "Information set in the file will be used for try_compile and try_run "
  730. "builds too."
  731. ,false,
  732. "Variables That Change Behavior");
  733. cm->DefineProperty
  734. ("BUILD_SHARED_LIBS", cmProperty::VARIABLE,
  735. "Global flag to cause add_library to create shared libraries if on.",
  736. "If present and true, this will cause all libraries to be "
  737. "built shared unless the library was explicitly added as a "
  738. "static library. This variable is often added to projects "
  739. "as an OPTION so that each user of a project can decide if "
  740. "they want to build the project using shared or static "
  741. "libraries.",false,
  742. "Variables That Change Behavior");
  743. cm->DefineProperty
  744. ("CMAKE_NOT_USING_CONFIG_FLAGS", cmProperty::VARIABLE,
  745. "Skip _BUILD_TYPE flags if true.",
  746. "This is an internal flag used by the generators in "
  747. "CMake to tell CMake to skip the _BUILD_TYPE flags.",false,
  748. "Variables That Change Behavior");
  749. cm->DefineProperty
  750. ("CMAKE_MFC_FLAG", cmProperty::VARIABLE,
  751. "Tell cmake to use MFC for an executable or dll.",
  752. "This can be set in a CMakeLists.txt file and will "
  753. "enable MFC in the application. It should be set "
  754. "to 1 for static the static MFC library, and 2 for "
  755. "the shared MFC library. This is used in visual "
  756. "studio 6 and 7 project files. The CMakeSetup "
  757. "dialog used MFC and the CMakeLists.txt looks like this:\n"
  758. "add_definitions(-D_AFXDLL)\n"
  759. "set(CMAKE_MFC_FLAG 2)\n"
  760. "add_executable(CMakeSetup WIN32 ${SRCS})\n",false,
  761. "Variables That Change Behavior");
  762. cm->DefineProperty
  763. ("CMAKE_COLOR_MAKEFILE", cmProperty::VARIABLE,
  764. "Enables color output when using the Makefile generator.",
  765. "When enabled, the generated Makefiles will produce colored output. "
  766. "Default is ON.",false,
  767. "Variables That Change Behavior");
  768. // Variables defined by CMake that describe the system
  769. cm->DefineProperty
  770. ("CMAKE_SYSTEM", cmProperty::VARIABLE,
  771. "Name of system cmake is compiling for.",
  772. "This variable is the composite of CMAKE_SYSTEM_NAME "
  773. "and CMAKE_SYSTEM_VERSION, like this "
  774. "${CMAKE_SYSTEM_NAME}-${CMAKE_SYSTEM_VERSION}. "
  775. "If CMAKE_SYSTEM_VERSION is not set, then "
  776. "CMAKE_SYSTEM is the same as CMAKE_SYSTEM_NAME.",false,
  777. "Variables That Describe the System");
  778. cm->DefineProperty
  779. ("CMAKE_SYSTEM_NAME", cmProperty::VARIABLE,
  780. "Name of the OS CMake is building for.",
  781. "This is the name of the operating system on "
  782. "which CMake is targeting. On systems that "
  783. "have the uname command, this variable is set "
  784. "to the output of uname -s. Linux, Windows, "
  785. " and Darwin for Mac OSX are the values found "
  786. " on the big three operating systems." ,false,
  787. "Variables That Describe the System");
  788. cm->DefineProperty
  789. ("CMAKE_SYSTEM_PROCESSOR", cmProperty::VARIABLE,
  790. "The name of the CPU CMake is building for.",
  791. "On systems that support uname, this variable is "
  792. "set to the output of uname -p, on windows it is "
  793. "set to the value of the environment variable "
  794. "PROCESSOR_ARCHITECTURE",false,
  795. "Variables That Describe the System");
  796. cm->DefineProperty
  797. ("CMAKE_SYSTEM_VERSION", cmProperty::VARIABLE,
  798. "OS version CMake is building for.",
  799. "A numeric version string for the system, on "
  800. "systems that support uname, this variable is "
  801. "set to the output of uname -r. On other "
  802. "systems this is set to major-minor version numbers.",false,
  803. "Variables That Describe the System");
  804. cm->DefineProperty
  805. ("CMAKE_LIBRARY_ARCHITECTURE", cmProperty::VARIABLE,
  806. "Target architecture library directory name, if detected.",
  807. "This is the value of CMAKE_<lang>_LIBRARY_ARCHITECTURE as "
  808. "detected for one of the enabled languages.",false,
  809. "Variables That Describe the System");
  810. cm->DefineProperty
  811. ("CMAKE_LIBRARY_ARCHITECTURE_REGEX", cmProperty::VARIABLE,
  812. "Regex matching possible target architecture library directory names.",
  813. "This is used to detect CMAKE_<lang>_LIBRARY_ARCHITECTURE from the "
  814. "implicit linker search path by matching the <arch> name.",false,
  815. "Variables That Describe the System");
  816. cm->DefineProperty
  817. ("CMAKE_HOST_SYSTEM", cmProperty::VARIABLE,
  818. "Name of system cmake is being run on.",
  819. "The same as CMAKE_SYSTEM but for the host system instead "
  820. "of the target system when cross compiling.",false,
  821. "Variables That Describe the System");
  822. cm->DefineProperty
  823. ("CMAKE_HOST_SYSTEM_NAME", cmProperty::VARIABLE,
  824. "Name of the OS CMake is running on.",
  825. "The same as CMAKE_SYSTEM_NAME but for the host system instead "
  826. "of the target system when cross compiling.",false,
  827. "Variables That Describe the System");
  828. cm->DefineProperty
  829. ("CMAKE_HOST_SYSTEM_PROCESSOR", cmProperty::VARIABLE,
  830. "The name of the CPU CMake is running on.",
  831. "The same as CMAKE_SYSTEM_PROCESSOR but for the host system instead "
  832. "of the target system when cross compiling.",false,
  833. "Variables That Describe the System");
  834. cm->DefineProperty
  835. ("CMAKE_HOST_SYSTEM_VERSION", cmProperty::VARIABLE,
  836. "OS version CMake is running on.",
  837. "The same as CMAKE_SYSTEM_VERSION but for the host system instead "
  838. "of the target system when cross compiling.",false,
  839. "Variables That Describe the System");
  840. cm->DefineProperty
  841. ("APPLE", cmProperty::VARIABLE,
  842. "True if running on Mac OSX.",
  843. "Set to true on Mac OSX.",false,
  844. "Variables That Describe the System");
  845. cm->DefineProperty
  846. ("BORLAND", cmProperty::VARIABLE,
  847. "True of the borland compiler is being used.",
  848. "This is set to true if the Borland compiler is being used.",false,
  849. "Variables That Describe the System");
  850. cm->DefineProperty
  851. ("CYGWIN", cmProperty::VARIABLE,
  852. "True for cygwin.",
  853. "Set to true when using CYGWIN.",false,
  854. "Variables That Describe the System");
  855. cm->DefineProperty
  856. ("MSVC", cmProperty::VARIABLE,
  857. "True when using Microsoft Visual C",
  858. "Set to true when the compiler is some version of Microsoft Visual C.",
  859. false,
  860. "Variables That Describe the System");
  861. cm->DefineProperty
  862. ("MSVC80", cmProperty::VARIABLE,
  863. "True when using Microsoft Visual C 8.0",
  864. "Set to true when the compiler is version 8.0 of Microsoft Visual C.",
  865. false,
  866. "Variables That Describe the System");
  867. cm->DefineProperty
  868. ("MSVC_IDE", cmProperty::VARIABLE,
  869. "True when using the Microsoft Visual C IDE",
  870. "Set to true when the target platform is the Microsoft Visual C IDE, "
  871. "as opposed to the command line compiler.",
  872. false,
  873. "Variables That Describe the System");
  874. cm->DefineProperty
  875. ("MSVC_VERSION", cmProperty::VARIABLE,
  876. "The version of Microsoft Visual C/C++ being used if any.",
  877. "Known version numbers are:\n"
  878. " 1200 = VS 6.0\n"
  879. " 1300 = VS 7.0\n"
  880. " 1310 = VS 7.1\n"
  881. " 1400 = VS 8.0\n"
  882. " 1500 = VS 9.0\n"
  883. " 1600 = VS 10.0\n"
  884. "",
  885. false,
  886. "Variables That Describe the System");
  887. cm->DefineProperty
  888. ("CMAKE_CL_64", cmProperty::VARIABLE,
  889. "Using the 64 bit compiler from Microsoft",
  890. "Set to true when using the 64 bit cl compiler from Microsoft.",
  891. false,
  892. "Variables That Describe the System");
  893. cm->DefineProperty
  894. ("CMAKE_COMPILER_2005", cmProperty::VARIABLE,
  895. "Using the Visual Studio 2005 compiler from Microsoft",
  896. "Set to true when using the Visual Studio 2005 compiler "
  897. "from Microsoft.",
  898. false,
  899. "Variables That Describe the System");
  900. cm->DefineProperty
  901. ("UNIX", cmProperty::VARIABLE,
  902. "True for UNIX and UNIX like operating systems.",
  903. "Set to true when the target system is UNIX or UNIX like "
  904. "(i.e. APPLE and CYGWIN).",false,
  905. "Variables That Describe the System");
  906. cm->DefineProperty
  907. ("WIN32", cmProperty::VARIABLE,
  908. "True on windows systems, including win64.",
  909. "Set to true when the target system is Windows.",false,
  910. "Variables That Describe the System");
  911. cm->DefineProperty
  912. ("XCODE_VERSION", cmProperty::VARIABLE,
  913. "Version of Xcode (Xcode generator only).",
  914. "Under the Xcode generator, this is the version of Xcode as specified in "
  915. "\"Xcode.app/Contents/version.plist\" (such as \"3.1.2\").",false,
  916. "Variables That Describe the System");
  917. cm->DefineProperty
  918. ("CMAKE_HOST_APPLE", cmProperty::VARIABLE,
  919. "True for Apple OSXoperating systems.",
  920. "Set to true when the host system is Apple OSX.",
  921. false,
  922. "Variables That Describe the System");
  923. cm->DefineProperty
  924. ("CMAKE_HOST_UNIX", cmProperty::VARIABLE,
  925. "True for UNIX and UNIX like operating systems.",
  926. "Set to true when the host system is UNIX or UNIX like "
  927. "(i.e. APPLE and CYGWIN).",false,
  928. "Variables That Describe the System");
  929. cm->DefineProperty
  930. ("CMAKE_HOST_WIN32", cmProperty::VARIABLE,
  931. "True on windows systems, including win64.",
  932. "Set to true when the host system is Windows and on cygwin.",false,
  933. "Variables That Describe the System");
  934. cm->DefineProperty
  935. ("CMAKE_OBJECT_PATH_MAX", cmProperty::VARIABLE,
  936. "Maximum object file full-path length allowed by native build tools.",
  937. "CMake computes for every source file an object file name that is "
  938. "unique to the source file and deterministic with respect to the "
  939. "full path to the source file. "
  940. "This allows multiple source files in a target to share the same name "
  941. "if they lie in different directories without rebuilding when one is "
  942. "added or removed. "
  943. "However, it can produce long full paths in a few cases, so CMake "
  944. "shortens the path using a hashing scheme when the full path to an "
  945. "object file exceeds a limit. "
  946. "CMake has a built-in limit for each platform that is sufficient for "
  947. "common tools, but some native tools may have a lower limit. "
  948. "This variable may be set to specify the limit explicitly. "
  949. "The value must be an integer no less than 128.",false,
  950. "Variables That Describe the System");
  951. // Variables that affect the building of object files and
  952. // targets.
  953. //
  954. cm->DefineProperty
  955. ("CMAKE_INCLUDE_CURRENT_DIR", cmProperty::VARIABLE,
  956. "Automatically add the current source- and build directories "
  957. "to the include path.",
  958. "If this variable is enabled, CMake automatically adds in each "
  959. "directory ${CMAKE_CURRENT_SOURCE_DIR} and ${CMAKE_CURRENT_BINARY_DIR} "
  960. "to the include path for this directory. These additional include "
  961. "directories do not propagate down to subdirectories. This is useful "
  962. "mainly for out-of-source builds, where files generated into the "
  963. "build tree are included by files located in the source tree.\n"
  964. "By default CMAKE_INCLUDE_CURRENT_DIR is OFF.",
  965. false,
  966. "Variables that Control the Build");
  967. cm->DefineProperty
  968. ("CMAKE_INSTALL_RPATH", cmProperty::VARIABLE,
  969. "The rpath to use for installed targets.",
  970. "A semicolon-separated list specifying the rpath "
  971. "to use in installed targets (for platforms that support it). "
  972. "This is used to initialize the target property "
  973. "INSTALL_RPATH for all targets.",
  974. false,
  975. "Variables that Control the Build");
  976. cm->DefineProperty
  977. ("CMAKE_INSTALL_RPATH_USE_LINK_PATH", cmProperty::VARIABLE,
  978. "Add paths to linker search and installed rpath.",
  979. "CMAKE_INSTALL_RPATH_USE_LINK_PATH is a boolean that if set to true "
  980. "will append directories in the linker search path and outside the "
  981. "project to the INSTALL_RPATH. "
  982. "This is used to initialize the target property "
  983. "INSTALL_RPATH_USE_LINK_PATH for all targets.",
  984. false,
  985. "Variables that Control the Build");
  986. cm->DefineProperty
  987. ("CMAKE_INSTALL_NAME_DIR", cmProperty::VARIABLE,
  988. "Mac OSX directory name for installed targets.",
  989. "CMAKE_INSTALL_NAME_DIR is used to initialize the "
  990. "INSTALL_NAME_DIR property on all targets. See that target "
  991. "property for more information.",
  992. false,
  993. "Variables that Control the Build");
  994. cm->DefineProperty
  995. ("CMAKE_Fortran_FORMAT", cmProperty::VARIABLE,
  996. "Set to FIXED or FREE to indicate the Fortran source layout.",
  997. "This variable is used to initialize the Fortran_FORMAT "
  998. "property on all the targets. "
  999. "See that target property for additional information.",
  1000. false,
  1001. "Variables that Control the Build");
  1002. cm->DefineProperty
  1003. ("CMAKE_Fortran_MODULE_DIRECTORY", cmProperty::VARIABLE,
  1004. "Fortran module output directory.",
  1005. "This variable is used to initialize the "
  1006. "Fortran_MODULE_DIRECTORY property on all the targets. "
  1007. "See that target property for additional information.",
  1008. false,
  1009. "Variables that Control the Build");
  1010. cm->DefineProperty
  1011. ("CMAKE_LIBRARY_OUTPUT_DIRECTORY", cmProperty::VARIABLE,
  1012. "Where to put all the LIBRARY targets when built.",
  1013. "This variable is used to initialize the "
  1014. "LIBRARY_OUTPUT_DIRECTORY property on all the targets. "
  1015. "See that target property for additional information.",
  1016. false,
  1017. "Variables that Control the Build");
  1018. cm->DefineProperty
  1019. ("CMAKE_ARCHIVE_OUTPUT_DIRECTORY", cmProperty::VARIABLE,
  1020. "Where to put all the ARCHIVE targets when built.",
  1021. "This variable is used to initialize the "
  1022. "ARCHIVE_OUTPUT_DIRECTORY property on all the targets. "
  1023. "See that target property for additional information.",
  1024. false,
  1025. "Variables that Control the Build");
  1026. cm->DefineProperty
  1027. ("CMAKE_RUNTIME_OUTPUT_DIRECTORY", cmProperty::VARIABLE,
  1028. "Where to put all the RUNTIME targets when built.",
  1029. "This variable is used to initialize the "
  1030. "RUNTIME_OUTPUT_DIRECTORY property on all the targets. "
  1031. "See that target property for additional information.",
  1032. false,
  1033. "Variables that Control the Build");
  1034. cm->DefineProperty
  1035. ("CMAKE_AUTOMOC", cmProperty::VARIABLE,
  1036. "Whether to handle moc automatically for Qt targets.",
  1037. "This variable is used to initialize the "
  1038. "AUTOMOC property on all the targets. "
  1039. "See that target property for additional information.",
  1040. false,
  1041. "Variables that Control the Build");
  1042. cm->DefineProperty
  1043. ("CMAKE_AUTOMOC_MOC_OPTIONS", cmProperty::VARIABLE,
  1044. "Additional options for moc when using automoc (see CMAKE_AUTOMOC).",
  1045. "This variable is used to initialize the "
  1046. "AUTOMOC_MOC_OPTIONS property on all the targets. "
  1047. "See that target property for additional information.",
  1048. false,
  1049. "Variables that Control the Build");
  1050. cm->DefineProperty
  1051. ("CMAKE_GNUtoMS", cmProperty::VARIABLE,
  1052. "Convert GNU import libraries (.dll.a) to MS format (.lib).",
  1053. "This variable is used to initialize the GNUtoMS property on targets "
  1054. "when they are created. "
  1055. "See that target property for additional information.",
  1056. false,
  1057. "Variables that Control the Build");
  1058. cm->DefineProperty
  1059. ("CMAKE_DEBUG_POSTFIX", cmProperty::VARIABLE,
  1060. "See variable CMAKE_<CONFIG>_POSTFIX.",
  1061. "This variable is a special case of the more-general "
  1062. "CMAKE_<CONFIG>_POSTFIX variable for the DEBUG configuration.",
  1063. false,
  1064. "Variables that Control the Build");
  1065. cm->DefineProperty
  1066. ("CMAKE_<CONFIG>_POSTFIX", cmProperty::VARIABLE,
  1067. "Default filename postfix for libraries under configuration <CONFIG>.",
  1068. "When a non-executable target is created its <CONFIG>_POSTFIX "
  1069. "target property is initialized with the value of this variable "
  1070. "if it is set.",
  1071. false,
  1072. "Variables that Control the Build");
  1073. cm->DefineProperty
  1074. ("CMAKE_BUILD_WITH_INSTALL_RPATH", cmProperty::VARIABLE,
  1075. "Use the install path for the RPATH",
  1076. "Normally CMake uses the build tree for the RPATH when building "
  1077. "executables etc on systems that use RPATH. When the software "
  1078. "is installed the executables etc are relinked by CMake to have "
  1079. "the install RPATH. If this variable is set to true then the software "
  1080. "is always built with the install path for the RPATH and does not "
  1081. "need to be relinked when installed.",false,
  1082. "Variables that Control the Build");
  1083. cm->DefineProperty
  1084. ("CMAKE_NO_BUILTIN_CHRPATH", cmProperty::VARIABLE,
  1085. "Do not use the builtin ELF editor to fix RPATHs on installation.",
  1086. "When an ELF binary needs to have a different RPATH after installation "
  1087. "than it does in the build tree, CMake uses a builtin editor to change "
  1088. "the RPATH in the installed copy. "
  1089. "If this variable is set to true then CMake will relink the binary "
  1090. "before installation instead of using its builtin editor.",false,
  1091. "Variables that Control the Build");
  1092. cm->DefineProperty
  1093. ("CMAKE_SKIP_BUILD_RPATH", cmProperty::VARIABLE,
  1094. "Do not include RPATHs in the build tree.",
  1095. "Normally CMake uses the build tree for the RPATH when building "
  1096. "executables etc on systems that use RPATH. When the software "
  1097. "is installed the executables etc are relinked by CMake to have "
  1098. "the install RPATH. If this variable is set to true then the software "
  1099. "is always built with no RPATH.",false,
  1100. "Variables that Control the Build");
  1101. cm->DefineProperty
  1102. ("CMAKE_EXE_LINKER_FLAGS", cmProperty::VARIABLE,
  1103. "Linker flags used to create executables.",
  1104. "Flags used by the linker when creating an executable.",false,
  1105. "Variables that Control the Build");
  1106. cm->DefineProperty
  1107. ("CMAKE_EXE_LINKER_FLAGS_[CMAKE_BUILD_TYPE]", cmProperty::VARIABLE,
  1108. "Flag used when linking an executable.",
  1109. "Same as CMAKE_C_FLAGS_* but used by the linker "
  1110. "when creating executables.",false,
  1111. "Variables that Control the Build");
  1112. cm->DefineProperty
  1113. ("CMAKE_LIBRARY_PATH_FLAG", cmProperty::VARIABLE,
  1114. "The flag used to add a library search path to a compiler.",
  1115. "The flag used to specify a library directory to the compiler. "
  1116. "On most compilers this is \"-L\".",false,
  1117. "Variables that Control the Build");
  1118. cm->DefineProperty
  1119. ("CMAKE_LINK_DEF_FILE_FLAG ", cmProperty::VARIABLE,
  1120. "Linker flag used to specify a .def file for dll creation.",
  1121. "The flag used to add a .def file when creating "
  1122. "a dll on Windows, this is only defined on Windows.",false,
  1123. "Variables that Control the Build");
  1124. cm->DefineProperty
  1125. ("CMAKE_LINK_LIBRARY_FLAG", cmProperty::VARIABLE,
  1126. "Flag used to link a library into an executable.",
  1127. "The flag used to specify a library to link to an executable. "
  1128. "On most compilers this is \"-l\".",false,
  1129. "Variables that Control the Build");
  1130. cm->DefineProperty
  1131. ("CMAKE_LINK_LIBRARY_FILE_FLAG", cmProperty::VARIABLE,
  1132. "Flag used to link a library specified by a path to its file.",
  1133. "The flag used before a library file path is given to the linker. "
  1134. "This is needed only on very few platforms.", false,
  1135. "Variables that Control the Build");
  1136. cm->DefineProperty
  1137. ("CMAKE_USE_RELATIVE_PATHS", cmProperty::VARIABLE,
  1138. "Use relative paths (May not work!).",
  1139. "If this is set to TRUE, then the CMake will use "
  1140. "relative paths between the source and binary tree. "
  1141. "This option does not work for more complicated "
  1142. "projects, and relative paths are used when possible. "
  1143. "In general, it is not possible to move CMake generated"
  1144. " makefiles to a different location regardless "
  1145. "of the value of this variable.",false,
  1146. "Variables that Control the Build");
  1147. cm->DefineProperty
  1148. ("EXECUTABLE_OUTPUT_PATH", cmProperty::VARIABLE,
  1149. "Old executable location variable.",
  1150. "The target property RUNTIME_OUTPUT_DIRECTORY supercedes "
  1151. "this variable for a target if it is set. "
  1152. "Executable targets are otherwise placed in this directory.",false,
  1153. "Variables that Control the Build");
  1154. cm->DefineProperty
  1155. ("LIBRARY_OUTPUT_PATH", cmProperty::VARIABLE,
  1156. "Old library location variable.",
  1157. "The target properties ARCHIVE_OUTPUT_DIRECTORY, "
  1158. "LIBRARY_OUTPUT_DIRECTORY, and RUNTIME_OUTPUT_DIRECTORY supercede "
  1159. "this variable for a target if they are set. "
  1160. "Library targets are otherwise placed in this directory.",false,
  1161. "Variables that Control the Build");
  1162. cm->DefineProperty
  1163. ("CMAKE_TRY_COMPILE_CONFIGURATION", cmProperty::VARIABLE,
  1164. "Build configuration used for try_compile and try_run projects.",
  1165. "Projects built by try_compile and try_run are built "
  1166. "synchronously during the CMake configuration step. "
  1167. "Therefore a specific build configuration must be chosen even "
  1168. "if the generated build system supports multiple configurations.",false,
  1169. "Variables that Control the Build");
  1170. cm->DefineProperty
  1171. ("CMAKE_LINK_INTERFACE_LIBRARIES", cmProperty::VARIABLE,
  1172. "Default value for LINK_INTERFACE_LIBRARIES of targets.",
  1173. "This variable is used to initialize the "
  1174. "LINK_INTERFACE_LIBRARIES property on all the targets. "
  1175. "See that target property for additional information.",
  1176. false,
  1177. "Variables that Control the Build");
  1178. // Variables defined when the a language is enabled These variables will
  1179. // also be defined whenever CMake has loaded its support for compiling (LANG)
  1180. // programs. This support will be loaded whenever CMake is used to compile
  1181. // (LANG) files. C and CXX are examples of the most common values for (LANG).
  1182. cm->DefineProperty
  1183. ("CMAKE_USER_MAKE_RULES_OVERRIDE_<LANG>", cmProperty::VARIABLE,
  1184. "Specify a CMake file that overrides platform information for <LANG>.",
  1185. "This is a language-specific version of "
  1186. "CMAKE_USER_MAKE_RULES_OVERRIDE loaded only when enabling "
  1187. "language <LANG>.",false,
  1188. "Variables for Languages");
  1189. cm->DefineProperty
  1190. ("CMAKE_<LANG>_COMPILER", cmProperty::VARIABLE,
  1191. "The full path to the compiler for LANG.",
  1192. "This is the command that will be used as the <LANG> compiler. "
  1193. "Once set, you can not change this variable.",false,
  1194. "Variables for Languages");
  1195. cm->DefineProperty
  1196. ("CMAKE_<LANG>_COMPILER_ID", cmProperty::VARIABLE,
  1197. "An internal variable subject to change.",
  1198. "This is used in determining the compiler and is subject to change.",
  1199. false,
  1200. "Variables for Languages");
  1201. cm->DefineProperty
  1202. ("CMAKE_<LANG>_PLATFORM_ID", cmProperty::VARIABLE,
  1203. "An internal variable subject to change.",
  1204. "This is used in determining the platform and is subject to change.",
  1205. false,
  1206. "Variables for Languages");
  1207. cm->DefineProperty
  1208. ("CMAKE_<LANG>_COMPILER_ABI", cmProperty::VARIABLE,
  1209. "An internal variable subject to change.",
  1210. "This is used in determining the compiler ABI and is subject to change.",
  1211. false,
  1212. "Variables for Languages");
  1213. cm->DefineProperty
  1214. ("CMAKE_INTERNAL_PLATFORM_ABI", cmProperty::VARIABLE,
  1215. "An internal variable subject to change.",
  1216. "This is used in determining the compiler ABI and is subject to change.",
  1217. false,
  1218. "Variables for Languages");
  1219. cm->DefineProperty
  1220. ("CMAKE_<LANG>_SIZEOF_DATA_PTR", cmProperty::VARIABLE,
  1221. "Size of pointer-to-data types for language <LANG>.",
  1222. "This holds the size (in bytes) of pointer-to-data types in the target "
  1223. "platform ABI. "
  1224. "It is defined for languages C and CXX (C++).",
  1225. false,
  1226. "Variables for Languages");
  1227. cm->DefineProperty
  1228. ("CMAKE_COMPILER_IS_GNU<LANG>", cmProperty::VARIABLE,
  1229. "True if the compiler is GNU.",
  1230. "If the selected <LANG> compiler is the GNU "
  1231. "compiler then this is TRUE, if not it is FALSE.",false,
  1232. "Variables for Languages");
  1233. cm->DefineProperty
  1234. ("CMAKE_<LANG>_FLAGS_DEBUG", cmProperty::VARIABLE,
  1235. "Flags for Debug build type or configuration.",
  1236. "<LANG> flags used when CMAKE_BUILD_TYPE is Debug.",false,
  1237. "Variables for Languages");
  1238. cm->DefineProperty
  1239. ("CMAKE_<LANG>_FLAGS_MINSIZEREL", cmProperty::VARIABLE,
  1240. "Flags for MinSizeRel build type or configuration.",
  1241. "<LANG> flags used when CMAKE_BUILD_TYPE is MinSizeRel."
  1242. "Short for minimum size release.",false,
  1243. "Variables for Languages");
  1244. cm->DefineProperty
  1245. ("CMAKE_<LANG>_FLAGS_RELEASE", cmProperty::VARIABLE,
  1246. "Flags for Release build type or configuration.",
  1247. "<LANG> flags used when CMAKE_BUILD_TYPE is Release",false,
  1248. "Variables for Languages");
  1249. cm->DefineProperty
  1250. ("CMAKE_<LANG>_FLAGS_RELWITHDEBINFO", cmProperty::VARIABLE,
  1251. "Flags for RelWithDebInfo type or configuration.",
  1252. "<LANG> flags used when CMAKE_BUILD_TYPE is RelWithDebInfo. "
  1253. "Short for Release With Debug Information.",false,
  1254. "Variables for Languages");
  1255. cm->DefineProperty
  1256. ("CMAKE_<LANG>_COMPILE_OBJECT", cmProperty::VARIABLE,
  1257. "Rule variable to compile a single object file.",
  1258. "This is a rule variable that tells CMake how to "
  1259. "compile a single object file for for the language <LANG>.",false,
  1260. "Variables for Languages");
  1261. cm->DefineProperty
  1262. ("CMAKE_<LANG>_CREATE_SHARED_LIBRARY", cmProperty::VARIABLE,
  1263. "Rule variable to create a shared library.",
  1264. "This is a rule variable that tells CMake how to "
  1265. "create a shared library for the language <LANG>.",false,
  1266. "Variables for Languages");
  1267. cm->DefineProperty
  1268. ("CMAKE_<LANG>_CREATE_SHARED_MODULE", cmProperty::VARIABLE,
  1269. "Rule variable to create a shared module.",
  1270. "This is a rule variable that tells CMake how to "
  1271. "create a shared library for the language <LANG>.",false,
  1272. "Variables for Languages");
  1273. cm->DefineProperty
  1274. ("CMAKE_<LANG>_CREATE_STATIC_LIBRARY", cmProperty::VARIABLE,
  1275. "Rule variable to create a static library.",
  1276. "This is a rule variable that tells CMake how "
  1277. "to create a static library for the language <LANG>.",false,
  1278. "Variables for Languages");
  1279. cm->DefineProperty
  1280. ("CMAKE_<LANG>_ARCHIVE_CREATE", cmProperty::VARIABLE,
  1281. "Rule variable to create a new static archive.",
  1282. "This is a rule variable that tells CMake how to create a static "
  1283. "archive. It is used in place of CMAKE_<LANG>_CREATE_STATIC_LIBRARY "
  1284. "on some platforms in order to support large object counts. "
  1285. "See also CMAKE_<LANG>_ARCHIVE_APPEND and CMAKE_<LANG>_ARCHIVE_FINISH.",
  1286. false, "Variables for Languages");
  1287. cm->DefineProperty
  1288. ("CMAKE_<LANG>_ARCHIVE_APPEND", cmProperty::VARIABLE,
  1289. "Rule variable to append to a static archive.",
  1290. "This is a rule variable that tells CMake how to append to a static "
  1291. "archive. It is used in place of CMAKE_<LANG>_CREATE_STATIC_LIBRARY "
  1292. "on some platforms in order to support large object counts. "
  1293. "See also CMAKE_<LANG>_ARCHIVE_CREATE and CMAKE_<LANG>_ARCHIVE_FINISH.",
  1294. false, "Variables for Languages");
  1295. cm->DefineProperty
  1296. ("CMAKE_<LANG>_ARCHIVE_FINISH", cmProperty::VARIABLE,
  1297. "Rule variable to finish an existing static archive.",
  1298. "This is a rule variable that tells CMake how to finish a static "
  1299. "archive. It is used in place of CMAKE_<LANG>_CREATE_STATIC_LIBRARY "
  1300. "on some platforms in order to support large object counts. "
  1301. "See also CMAKE_<LANG>_ARCHIVE_CREATE and CMAKE_<LANG>_ARCHIVE_APPEND.",
  1302. false, "Variables for Languages");
  1303. cm->DefineProperty
  1304. ("CMAKE_<LANG>_IGNORE_EXTENSIONS", cmProperty::VARIABLE,
  1305. "File extensions that should be ignored by the build.",
  1306. "This is a list of file extensions that may be "
  1307. "part of a project for a given language but are not compiled. ",false,
  1308. "Variables for Languages");
  1309. cm->DefineProperty
  1310. ("CMAKE_<LANG>_IMPLICIT_INCLUDE_DIRECTORIES", cmProperty::VARIABLE,
  1311. "Directories implicitly searched by the compiler for header files.",
  1312. "CMake does not explicitly specify these directories on compiler "
  1313. "command lines for language <LANG>. "
  1314. "This prevents system include directories from being treated as user "
  1315. "include directories on some compilers.", false,
  1316. "Variables for Languages");
  1317. cm->DefineProperty
  1318. ("CMAKE_<LANG>_IMPLICIT_LINK_DIRECTORIES", cmProperty::VARIABLE,
  1319. "Implicit linker search path detected for language <LANG>.",
  1320. "Compilers typically pass directories containing language runtime "
  1321. "libraries and default library search paths when they invoke a linker. "
  1322. "These paths are implicit linker search directories for the compiler's "
  1323. "language. "
  1324. "CMake automatically detects these directories for each language and "
  1325. "reports the results in this variable.", false,
  1326. "Variables for Languages");
  1327. cm->DefineProperty
  1328. ("CMAKE_<LANG>_IMPLICIT_LINK_LIBRARIES", cmProperty::VARIABLE,
  1329. "Implicit link libraries and flags detected for language <LANG>.",
  1330. "Compilers typically pass language runtime library names and "
  1331. "other flags when they invoke a linker. "
  1332. "These flags are implicit link options for the compiler's language. "
  1333. "CMake automatically detects these libraries and flags for each "
  1334. "language and reports the results in this variable.", false,
  1335. "Variables for Languages");
  1336. cm->DefineProperty
  1337. ("CMAKE_<LANG>_LIBRARY_ARCHITECTURE", cmProperty::VARIABLE,
  1338. "Target architecture library directory name detected for <lang>.",
  1339. "If the <lang> compiler passes to the linker an architecture-specific "
  1340. "system library search directory such as <prefix>/lib/<arch> this "
  1341. "variable contains the <arch> name if/as detected by CMake.",false,
  1342. "Variables for Languages");
  1343. cm->DefineProperty
  1344. ("CMAKE_<LANG>_LINKER_PREFERENCE_PROPAGATES", cmProperty::VARIABLE,
  1345. "True if CMAKE_<LANG>_LINKER_PREFERENCE propagates across targets.",
  1346. "This is used when CMake selects a linker language for a target. "
  1347. "Languages compiled directly into the target are always considered. "
  1348. "A language compiled into static libraries linked by the target is "
  1349. "considered if this variable is true.", false,
  1350. "Variables for Languages");
  1351. cm->DefineProperty
  1352. ("CMAKE_<LANG>_LINKER_PREFERENCE", cmProperty::VARIABLE,
  1353. "Preference value for linker language selection.",
  1354. "The \"linker language\" for executable, shared library, and module "
  1355. "targets is the language whose compiler will invoke the linker. "
  1356. "The LINKER_LANGUAGE target property sets the language explicitly. "
  1357. "Otherwise, the linker language is that whose linker preference value "
  1358. "is highest among languages compiled and linked into the target. "
  1359. "See also the CMAKE_<LANG>_LINKER_PREFERENCE_PROPAGATES variable.",
  1360. false,
  1361. "Variables for Languages");
  1362. cm->DefineProperty
  1363. ("CMAKE_<LANG>_LINK_EXECUTABLE ", cmProperty::VARIABLE,
  1364. "Rule variable to link and executable.",
  1365. "Rule variable to link and executable for the given language.",false,
  1366. "Variables for Languages");
  1367. cm->DefineProperty
  1368. ("CMAKE_<LANG>_OUTPUT_EXTENSION", cmProperty::VARIABLE,
  1369. "Extension for the output of a compile for a single file.",
  1370. "This is the extension for an object file for "
  1371. "the given <LANG>. For example .obj for C on Windows.",false,
  1372. "Variables for Languages");
  1373. cm->DefineProperty
  1374. ("CMAKE_<LANG>_SOURCE_FILE_EXTENSIONS", cmProperty::VARIABLE,
  1375. "Extensions of source files for the given language.",
  1376. "This is the list of extensions for a "
  1377. "given languages source files.",false,"Variables for Languages");
  1378. cm->DefineProperty(
  1379. "CMAKE_<LANG>_COMPILER_LOADED", cmProperty::VARIABLE,
  1380. "Defined to true if the language is enabled.",
  1381. "When language <LANG> is enabled by project() or enable_language() "
  1382. "this variable is defined to 1.",
  1383. false,"Variables for Languages");
  1384. cm->DefineProperty(
  1385. "CMAKE_Fortran_MODDIR_FLAG", cmProperty::VARIABLE,
  1386. "Fortran flag for module output directory.",
  1387. "This stores the flag needed to pass the value of the "
  1388. "Fortran_MODULE_DIRECTORY target property to the compiler.",
  1389. false,"Variables for Languages");
  1390. cm->DefineProperty(
  1391. "CMAKE_Fortran_MODDIR_DEFAULT", cmProperty::VARIABLE,
  1392. "Fortran default module output directory.",
  1393. "Most Fortran compilers write .mod files to the current working "
  1394. "directory. "
  1395. "For those that do not, this is set to \".\" and used when the "
  1396. "Fortran_MODULE_DIRECTORY target property is not set.",
  1397. false,"Variables for Languages");
  1398. cm->DefineProperty(
  1399. "CMAKE_Fortran_MODOUT_FLAG", cmProperty::VARIABLE,
  1400. "Fortran flag to enable module output.",
  1401. "Most Fortran compilers write .mod files out by default. "
  1402. "For others, this stores the flag needed to enable module output.",
  1403. false,"Variables for Languages");
  1404. // variables that are used by cmake but not to be documented
  1405. cm->DefineProperty("CMAKE_MATCH_0", cmProperty::VARIABLE,0,0);
  1406. cm->DefineProperty("CMAKE_MATCH_1", cmProperty::VARIABLE,0,0);
  1407. cm->DefineProperty("CMAKE_MATCH_2", cmProperty::VARIABLE,0,0);
  1408. cm->DefineProperty("CMAKE_MATCH_3", cmProperty::VARIABLE,0,0);
  1409. cm->DefineProperty("CMAKE_MATCH_4", cmProperty::VARIABLE,0,0);
  1410. cm->DefineProperty("CMAKE_MATCH_5", cmProperty::VARIABLE,0,0);
  1411. cm->DefineProperty("CMAKE_MATCH_6", cmProperty::VARIABLE,0,0);
  1412. cm->DefineProperty("CMAKE_MATCH_7", cmProperty::VARIABLE,0,0);
  1413. cm->DefineProperty("CMAKE_MATCH_8", cmProperty::VARIABLE,0,0);
  1414. cm->DefineProperty("CMAKE_MATCH_9", cmProperty::VARIABLE,0,0);
  1415. cm->DefineProperty("CMAKE_<LANG>_COMPILER_ARG1",
  1416. cmProperty::VARIABLE,0,0);
  1417. cm->DefineProperty("CMAKE_<LANG>_COMPILER_ENV_VAR",
  1418. cmProperty::VARIABLE,0,0);
  1419. cm->DefineProperty("CMAKE_<LANG>_COMPILER_ID_RUN",
  1420. cmProperty::VARIABLE,0,0);
  1421. cm->DefineProperty("CMAKE_<LANG>_ABI_FILES",
  1422. cmProperty::VARIABLE,0,0);
  1423. cm->DefineProperty("CMAKE_<LANG>_CREATE_ASSEMBLY_SOURCE",
  1424. cmProperty::VARIABLE,0,0);
  1425. cm->DefineProperty("CMAKE_<LANG>_CREATE_PREPROCESSED_SOURCE",
  1426. cmProperty::VARIABLE,0,0);
  1427. cm->DefineProperty("CMAKE_<LANG>_FLAGS",
  1428. cmProperty::VARIABLE,0,0);
  1429. cm->DefineProperty("CMAKE_<LANG>_FLAGS_DEBUG_INIT",
  1430. cmProperty::VARIABLE,0,0);
  1431. cm->DefineProperty("CMAKE_<LANG>_FLAGS_INIT",
  1432. cmProperty::VARIABLE,0,0);
  1433. cm->DefineProperty("CMAKE_<LANG>_FLAGS_MINSIZEREL_INIT",
  1434. cmProperty::VARIABLE,0,0);
  1435. cm->DefineProperty("CMAKE_<LANG>_FLAGS_RELEASE_INIT",
  1436. cmProperty::VARIABLE,0,0);
  1437. cm->DefineProperty("CMAKE_<LANG>_FLAGS_RELWITHDEBINFO_INIT",
  1438. cmProperty::VARIABLE,0,0);
  1439. cm->DefineProperty("CMAKE_<LANG>_INFORMATION_LOADED",
  1440. cmProperty::VARIABLE,0,0);
  1441. cm->DefineProperty("CMAKE_<LANG>_LINK_EXECUTABLE",
  1442. cmProperty::VARIABLE,0,0);
  1443. cm->DefineProperty("CMAKE_<LANG>_LINK_FLAGS",
  1444. cmProperty::VARIABLE,0,0);
  1445. cm->DefineProperty("CMAKE_<LANG>_RESPONSE_FILE_LINK_FLAG",
  1446. cmProperty::VARIABLE,0,0);
  1447. cm->DefineProperty("CMAKE_<LANG>_STANDARD_LIBRARIES",
  1448. cmProperty::VARIABLE,0,0);
  1449. cm->DefineProperty("CMAKE_<LANG>_STANDARD_LIBRARIES_INIT",
  1450. cmProperty::VARIABLE,0,0);
  1451. cm->DefineProperty("CMAKE_<LANG>_USE_RESPONSE_FILE_FOR_INCLUDES",
  1452. cmProperty::VARIABLE,0,0);
  1453. cm->DefineProperty("CMAKE_<LANG>_USE_RESPONSE_FILE_FOR_OBJECTS",
  1454. cmProperty::VARIABLE,0,0);
  1455. cm->DefineProperty("CMAKE_EXECUTABLE_SUFFIX_<LANG>",
  1456. cmProperty::VARIABLE,0,0);
  1457. cm->DefineProperty("CMAKE_EXE_LINK_DYNAMIC_<LANG>_FLAGS",
  1458. cmProperty::VARIABLE,0,0);
  1459. cm->DefineProperty("CMAKE_EXE_LINK_STATIC_<LANG>_FLAGS",
  1460. cmProperty::VARIABLE,0,0);
  1461. cm->DefineProperty("CMAKE_GENERATOR_<LANG>",
  1462. cmProperty::VARIABLE,0,0);
  1463. cm->DefineProperty("CMAKE_IMPORT_LIBRARY_PREFIX_<LANG>",
  1464. cmProperty::VARIABLE,0,0);
  1465. cm->DefineProperty("CMAKE_IMPORT_LIBRARY_SUFFIX_<LANG>",
  1466. cmProperty::VARIABLE,0,0);
  1467. cm->DefineProperty("CMAKE_INCLUDE_FLAG_<LANG>",
  1468. cmProperty::VARIABLE,0,0);
  1469. cm->DefineProperty("CMAKE_INCLUDE_FLAG_SEP_<LANG>",
  1470. cmProperty::VARIABLE,0,0);
  1471. cm->DefineProperty("CMAKE_INCLUDE_SYSTEM_FLAG_<LANG>",
  1472. cmProperty::VARIABLE,0,0);
  1473. cm->DefineProperty("CMAKE_NEEDS_REQUIRES_STEP_<LANG>_FLAG",
  1474. cmProperty::VARIABLE,0,0);
  1475. cm->DefineProperty("CMAKE_SHARED_LIBRARY_CREATE_<LANG>_FLAGS",
  1476. cmProperty::VARIABLE,0,0);
  1477. cm->DefineProperty("CMAKE_SHARED_LIBRARY_<LANG>_FLAGS",
  1478. cmProperty::VARIABLE,0,0);
  1479. cm->DefineProperty("CMAKE_SHARED_LIBRARY_LINK_<LANG>_FLAGS",
  1480. cmProperty::VARIABLE,0,0);
  1481. cm->DefineProperty("CMAKE_SHARED_LIBRARY_LINK_DYNAMIC_<LANG>_FLAGS",
  1482. cmProperty::VARIABLE,0,0);
  1483. cm->DefineProperty("CMAKE_SHARED_LIBRARY_LINK_STATIC_<LANG>_FLAGS",
  1484. cmProperty::VARIABLE,0,0);
  1485. cm->DefineProperty("CMAKE_SHARED_LIBRARY_PREFIX_<LANG>",
  1486. cmProperty::VARIABLE,0,0);
  1487. cm->DefineProperty("CMAKE_SHARED_LIBRARY_SUFFIX_<LANG>",
  1488. cmProperty::VARIABLE,0,0);
  1489. cm->DefineProperty("CMAKE_SHARED_LIBRARY_RUNTIME_<LANG>_FLAG",
  1490. cmProperty::VARIABLE,0,0);
  1491. cm->DefineProperty("CMAKE_SHARED_LIBRARY_RUNTIME_<LANG>_FLAG_SEP",
  1492. cmProperty::VARIABLE,0,0);
  1493. cm->DefineProperty("CMAKE_SHARED_LIBRARY_RPATH_LINK_<LANG>_FLAG",
  1494. cmProperty::VARIABLE,0,0);
  1495. cm->DefineProperty("CMAKE_EXECUTABLE_RUNTIME_<LANG>_FLAG",
  1496. cmProperty::VARIABLE,0,0);
  1497. cm->DefineProperty("CMAKE_EXECUTABLE_RUNTIME_<LANG>_FLAG_SEP",
  1498. cmProperty::VARIABLE,0,0);
  1499. cm->DefineProperty("CMAKE_EXECUTABLE_RPATH_LINK_<LANG>_FLAG",
  1500. cmProperty::VARIABLE,0,0);
  1501. cm->DefineProperty("CMAKE_PLATFORM_REQUIRED_RUNTIME_PATH",
  1502. cmProperty::VARIABLE,0,0);
  1503. cm->DefineProperty("CMAKE_SHARED_MODULE_CREATE_<LANG>_FLAGS",
  1504. cmProperty::VARIABLE,0,0);
  1505. cm->DefineProperty("CMAKE_SHARED_MODULE_<LANG>_FLAGS",
  1506. cmProperty::VARIABLE,0,0);
  1507. cm->DefineProperty("CMAKE_SHARED_MODULE_LINK_DYNAMIC_<LANG>_FLAGS",
  1508. cmProperty::VARIABLE,0,0);
  1509. cm->DefineProperty("CMAKE_SHARED_MODULE_LINK_STATIC_<LANG>_FLAGS",
  1510. cmProperty::VARIABLE,0,0);
  1511. cm->DefineProperty("CMAKE_SHARED_MODULE_PREFIX_<LANG>",
  1512. cmProperty::VARIABLE,0,0);
  1513. cm->DefineProperty("CMAKE_SHARED_MODULE_SUFFIX_<LANG>",
  1514. cmProperty::VARIABLE,0,0);
  1515. cm->DefineProperty("CMAKE_STATIC_LIBRARY_PREFIX_<LANG>",
  1516. cmProperty::VARIABLE,0,0);
  1517. cm->DefineProperty("CMAKE_STATIC_LIBRARY_SUFFIX_<LANG>",
  1518. cmProperty::VARIABLE,0,0);
  1519. cm->DefineProperty("CMAKE_LINK_DEPENDENT_LIBRARY_FILES",
  1520. cmProperty::VARIABLE,0,0);
  1521. cm->DefineProperty("CMAKE_LINK_DEPENDENT_LIBRARY_DIRS",
  1522. cmProperty::VARIABLE,0,0);
  1523. cm->DefineProperty("CMAKE_MAKE_INCLUDE_FROM_ROOT",
  1524. cmProperty::VARIABLE,0,0);
  1525. }