27
27
"The path to the top level of the build tree.",
28
28
"This is the full path to the top level of the current CMake "
29
29
"build tree. For an in-source build, this would be the same "
30
"as CMAKE_SOURCE_DIR. ", false,
30
"as CMAKE_SOURCE_DIR.", false,
31
31
"Variables that Provide Information");
33
33
("CMAKE_SOURCE_DIR", cmProperty::VARIABLE,
34
34
"The path to the top level of the source tree.",
35
35
"This is the full path to the top level of the current CMake "
36
36
"source tree. For an in-source build, this would be the same "
37
"as CMAKE_BINARY_DIR. ", false,
37
"as CMAKE_BINARY_DIR.", false,
38
38
"Variables that Provide Information");
40
40
("CMAKE_CURRENT_BINARY_DIR", cmProperty::VARIABLE,
109
109
cm->DefineProperty
110
110
("CMAKE_ARGC", cmProperty::VARIABLE,
111
"Number of command line arguments passed to CMake in script mode. ",
111
"Number of command line arguments passed to CMake in script mode.",
112
112
"When run in -P script mode, CMake sets this variable to the number "
113
"of command line arguments. See also CMAKE_ARGV0, 1, 2 ... ", false,
113
"of command line arguments. See also CMAKE_ARGV0, 1, 2 ...", false,
114
114
"Variables that Provide Information");
116
116
cm->DefineProperty
117
117
("CMAKE_ARGV0", cmProperty::VARIABLE,
118
"Command line argument passed to CMake in script mode. ",
118
"Command line argument passed to CMake in script mode.",
119
119
"When run in -P script mode, CMake sets this variable to "
120
120
"the first command line argument. It then also sets CMAKE_ARGV1, "
121
121
"CMAKE_ARGV2, ... and so on, up to the number of command line arguments "
578
590
cm->DefineProperty
579
591
("CMAKE_CONFIGURATION_TYPES", cmProperty::VARIABLE,
580
"Specifies the available build types.",
581
"This specifies what build types will be available such as "
582
"Debug, Release, RelWithDebInfo etc. This has reasonable defaults "
583
"on most platforms. But can be extended to provide other "
584
"build types. See also CMAKE_BUILD_TYPE.",
592
"Specifies the available build types on multi-config generators.",
593
"This specifies what build types (configurations) will be available "
594
"such as Debug, Release, RelWithDebInfo etc. "
595
"This has reasonable defaults on most platforms, "
596
"but can be extended to provide other build types. "
597
"See also CMAKE_BUILD_TYPE for details of managing configuration data, "
598
"and CMAKE_CFG_INTDIR."
586
600
"Variables That Change Behavior");
588
602
cm->DefineProperty
589
603
("CMAKE_BUILD_TYPE", cmProperty::VARIABLE,
590
"Specifies the build type for make based generators.",
591
"This specifies what build type will be built in this tree. "
592
" Possible values are empty, Debug, Release, RelWithDebInfo"
593
" and MinSizeRel. This variable is only supported for "
594
"make based generators. If this variable is supported, "
595
"then CMake will also provide initial values for the "
596
"variables with the name "
597
" CMAKE_C_FLAGS_[DEBUG|RELEASE|RELWITHDEBINFO|MINSIZEREL]."
598
" For example, if CMAKE_BUILD_TYPE is Debug, then "
599
"CMAKE_C_FLAGS_DEBUG will be added to the CMAKE_C_FLAGS.",false,
604
"Specifies the build type on single-configuration generators.",
605
"This statically specifies what build type (configuration) "
606
"will be built in this build tree. Possible values are "
607
"empty, Debug, Release, RelWithDebInfo and MinSizeRel. "
608
"This variable is only meaningful to single-configuration generators "
609
"(such as make and Ninja) i.e. "
610
"those which choose a single configuration "
611
"when CMake runs to generate a build tree as opposed to "
612
"multi-configuration generators which offer selection of the build "
613
"configuration within the generated build environment. "
614
"There are many per-config properties and variables "
615
"(usually following clean SOME_VAR_<CONFIG> order conventions), "
616
"such as CMAKE_C_FLAGS_<CONFIG>, specified as uppercase: "
617
"CMAKE_C_FLAGS_[DEBUG|RELEASE|RELWITHDEBINFO|MINSIZEREL]. "
618
"For example, in a build tree configured "
619
"to build type Debug, CMake will see to having "
620
"CMAKE_C_FLAGS_DEBUG settings get added to the CMAKE_C_FLAGS settings. "
621
"See also CMAKE_CONFIGURATION_TYPES."
600
623
"Variables That Change Behavior");
602
625
cm->DefineProperty
616
639
("CMAKE_INSTALL_PREFIX", cmProperty::VARIABLE,
617
640
"Install directory used by install.",
618
641
"If \"make install\" is invoked or INSTALL is built"
619
", this directory is pre-pended onto all install "
642
", this directory is prepended onto all install "
620
643
"directories. This variable defaults to /usr/local"
621
644
" on UNIX and c:/Program Files on Windows.\n"
622
645
"On UNIX one can use the DESTDIR mechanism in order"
623
" to relocate the whole installation. "
646
" to relocate the whole installation. "
624
647
"DESTDIR means DESTination DIRectory. It is "
625
648
"commonly used by makefile users "
626
"in order to install software at non-default location. "
649
"in order to install software at non-default location. "
627
650
"It is usually invoked like this:\n"
628
651
" make DESTDIR=/home/john install\n"
629
652
"which will install the concerned software using the"
630
" installation prefix, e.g. \"/usr/local\" pre-pended with "
653
" installation prefix, e.g. \"/usr/local\" prepended with "
631
654
"the DESTDIR value which finally gives \"/home/john/usr/local\".\n"
632
655
"WARNING: DESTDIR may not be used on Windows because installation"
633
656
" prefix usually contains a drive letter like in \"C:/Program Files\""
634
" which cannot be pre-pended with some other prefix."
657
" which cannot be prepended with some other prefix."
659
"The installation prefix is also added to CMAKE_SYSTEM_PREFIX_PATH "
660
"so that find_package, find_program, find_library, find_path, and "
661
"find_file will search the prefix for other software."
636
663
"Variables That Change Behavior");
638
665
cm->DefineProperty
639
666
("CMAKE_SKIP_INSTALL_ALL_DEPENDENCY", cmProperty::VARIABLE,
640
667
"Don't make the install target depend on the all target.",
641
"By default, the \"install\" target depends on the \"all\" target. "
668
"By default, the \"install\" target depends on the \"all\" target. "
642
669
"This has the effect, that when \"make install\" is invoked or INSTALL "
643
670
"is built, first the \"all\" target is built, then the installation "
645
672
"If CMAKE_SKIP_INSTALL_ALL_DEPENDENCY is set to TRUE, this dependency "
646
673
"is not created, so the installation process will start immediately, "
647
674
"independent from whether the project has been completely built or not."
658
685
"Variables That Change Behavior");
660
687
cm->DefineProperty
688
("CMAKE_WARN_DEPRECATED", cmProperty::VARIABLE,
689
"Whether to issue deprecation warnings for macros and functions.",
690
"If TRUE, this can be used by macros and functions to issue "
691
"deprecation warnings. This variable is FALSE by default.",
693
"Variables That Change Behavior");
696
("CMAKE_ERROR_DEPRECATED", cmProperty::VARIABLE,
697
"Whether to issue deprecation errors for macros and functions.",
698
"If TRUE, this can be used by macros and functions to issue "
699
"fatal errors when deprecated macros or functions are used. This "
700
"variable is FALSE by default.",
702
"Variables That Change Behavior");
661
705
("CMAKE_PREFIX_PATH", cmProperty::VARIABLE,
662
706
"Path used for searching by FIND_XXX(), with appropriate suffixes added.",
663
707
"Specifies a path which will be used by the FIND_XXX() commands. It "
740
785
"directories contain incompatible but possibly linkable libraries. For "
741
786
"example, on cross-compiled cluster environments, this allows a user to "
742
787
"ignore directories containing libraries meant for the front-end "
743
"machine that modules like FindX11 (and others) would normally search. "
744
"By default this is empty; it is intended to be set by the project. "
788
"machine that modules like FindX11 (and others) would normally search. "
789
"By default this is empty; it is intended to be set by the project. "
745
790
"Note that CMAKE_IGNORE_PATH takes a list of directory names, NOT a "
746
791
"list of prefixes. If you want to ignore paths under prefixes (bin, "
747
"include, lib, etc.), you'll need to specify them explicitly. "
792
"include, lib, etc.), you'll need to specify them explicitly. "
748
793
"See also CMAKE_PREFIX_PATH, CMAKE_LIBRARY_PATH, CMAKE_INCLUDE_PATH, "
749
794
"CMAKE_PROGRAM_PATH.", false,
750
795
"Variables That Change Behavior");
1000
1046
cm->DefineProperty
1001
1047
("APPLE", cmProperty::VARIABLE,
1002
"True if running on Mac OSX.",
1003
"Set to true on Mac OSX.",false,
1048
"True if running on Mac OS X.",
1049
"Set to true on Mac OS X."
1004
1051
"Variables That Describe the System");
1006
1053
cm->DefineProperty
1007
1054
("BORLAND", cmProperty::VARIABLE,
1008
"True if the borland compiler is being used.",
1055
"True if the Borland compiler is being used.",
1009
1056
"This is set to true if the Borland compiler is being used.",false,
1010
1057
"Variables That Describe the System");
1012
1059
cm->DefineProperty
1013
1060
("CYGWIN", cmProperty::VARIABLE,
1015
"Set to true when using CYGWIN.",false,
1062
"Set to true when using Cygwin."
1016
1064
"Variables That Describe the System");
1018
1066
cm->DefineProperty
1246
1303
("CMAKE_RUNTIME_OUTPUT_DIRECTORY", cmProperty::VARIABLE,
1247
1304
"Where to put all the RUNTIME targets when built.",
1248
1305
"This variable is used to initialize the "
1249
"RUNTIME_OUTPUT_DIRECTORY property on all the targets. "
1306
"RUNTIME_OUTPUT_DIRECTORY property on all the targets. "
1250
1307
"See that target property for additional information.",
1252
1309
"Variables that Control the Build");
1254
1311
cm->DefineProperty
1255
1312
("CMAKE_PDB_OUTPUT_DIRECTORY", cmProperty::VARIABLE,
1256
"Where to put all the MS debug symbol files.",
1313
"Where to put all the MS debug symbol files from linker.",
1257
1314
"This variable is used to initialize the "
1258
"PDB_OUTPUT_DIRECTORY property on all the targets. "
1315
"PDB_OUTPUT_DIRECTORY property on all the targets. "
1259
1316
"See that target property for additional information.",
1261
1318
"Variables that Control the Build");
1360
1417
cm->DefineProperty
1361
1418
("CMAKE_EXE_LINKER_FLAGS", cmProperty::VARIABLE,
1362
"Linker flags used to create executables.",
1363
"Flags used by the linker when creating an executable.",false,
1419
"Linker flags to be used to create executables.",
1420
"These flags will be used by the linker when creating an executable."
1364
1422
"Variables that Control the Build");
1366
1424
cm->DefineProperty
1367
("CMAKE_EXE_LINKER_FLAGS_[CMAKE_BUILD_TYPE]", cmProperty::VARIABLE,
1368
"Flag used when linking an executable.",
1425
("CMAKE_EXE_LINKER_FLAGS_<CONFIG>", cmProperty::VARIABLE,
1426
"Flags to be used when linking an executable.",
1369
1427
"Same as CMAKE_C_FLAGS_* but used by the linker "
1370
1428
"when creating executables.",false,
1371
1429
"Variables that Control the Build");
1432
("CMAKE_MODULE_LINKER_FLAGS", cmProperty::VARIABLE,
1433
"Linker flags to be used to create modules.",
1434
"These flags will be used by the linker when creating a module."
1436
"Variables that Control the Build");
1439
("CMAKE_MODULE_LINKER_FLAGS_<CONFIG>", cmProperty::VARIABLE,
1440
"Flags to be used when linking a module.",
1441
"Same as CMAKE_C_FLAGS_* but used by the linker "
1442
"when creating modules.",false,
1443
"Variables that Control the Build");
1446
("CMAKE_SHARED_LINKER_FLAGS", cmProperty::VARIABLE,
1447
"Linker flags to be used to create shared libraries.",
1448
"These flags will be used by the linker when creating a shared library."
1450
"Variables that Control the Build");
1453
("CMAKE_SHARED_LINKER_FLAGS_<CONFIG>", cmProperty::VARIABLE,
1454
"Flags to be used when linking a shared library.",
1455
"Same as CMAKE_C_FLAGS_* but used by the linker "
1456
"when creating shared libraries.",false,
1457
"Variables that Control the Build");
1460
("CMAKE_STATIC_LINKER_FLAGS", cmProperty::VARIABLE,
1461
"Linker flags to be used to create static libraries.",
1462
"These flags will be used by the linker when creating a static library."
1464
"Variables that Control the Build");
1467
("CMAKE_STATIC_LINKER_FLAGS_<CONFIG>", cmProperty::VARIABLE,
1468
"Flags to be used when linking a static library.",
1469
"Same as CMAKE_C_FLAGS_* but used by the linker "
1470
"when creating static libraries.",false,
1471
"Variables that Control the Build");
1372
1473
cm->DefineProperty
1373
1474
("CMAKE_LIBRARY_PATH_FLAG", cmProperty::VARIABLE,
1374
"The flag used to add a library search path to a compiler.",
1375
"The flag used to specify a library directory to the compiler. "
1475
"The flag to be used to add a library search path to a compiler.",
1476
"The flag will be used to specify a library directory to the compiler. "
1376
1477
"On most compilers this is \"-L\".",false,
1377
1478
"Variables that Control the Build");
1378
1479
cm->DefineProperty
1379
1480
("CMAKE_LINK_DEF_FILE_FLAG ", cmProperty::VARIABLE,
1380
"Linker flag used to specify a .def file for dll creation.",
1381
"The flag used to add a .def file when creating "
1382
"a dll on Windows, this is only defined on Windows.",false,
1481
"Linker flag to be used to specify a .def file for dll creation.",
1482
"The flag will be used to add a .def file when creating "
1483
"a dll on Windows; this is only defined on Windows."
1383
1485
"Variables that Control the Build");
1384
1486
cm->DefineProperty
1385
1487
("CMAKE_LINK_LIBRARY_FLAG", cmProperty::VARIABLE,
1386
"Flag used to link a library into an executable.",
1387
"The flag used to specify a library to link to an executable. "
1488
"Flag to be used to link a library into an executable.",
1489
"The flag will be used to specify a library to link to an executable. "
1388
1490
"On most compilers this is \"-l\".",false,
1389
1491
"Variables that Control the Build");
1390
1492
cm->DefineProperty
1391
1493
("CMAKE_LINK_LIBRARY_FILE_FLAG", cmProperty::VARIABLE,
1392
"Flag used to link a library specified by a path to its file.",
1393
"The flag used before a library file path is given to the linker. "
1494
"Flag to be used to link a library specified by a path to its file.",
1495
"The flag will be used before a library file path is given to the "
1394
1497
"This is needed only on very few platforms.", false,
1395
1498
"Variables that Control the Build");
1396
1499
cm->DefineProperty
1397
1500
("CMAKE_USE_RELATIVE_PATHS", cmProperty::VARIABLE,
1398
1501
"Use relative paths (May not work!).",
1399
"If this is set to TRUE, then the CMake will use "
1400
"relative paths between the source and binary tree. "
1502
"If this is set to TRUE, then CMake will use "
1503
"relative paths between the source and binary tree. "
1401
1504
"This option does not work for more complicated "
1402
1505
"projects, and relative paths are used when possible. "
1403
1506
"In general, it is not possible to move CMake generated"
1455
1558
("CMAKE_POSITION_INDEPENDENT_CODE", cmProperty::VARIABLE,
1456
1559
"Default value for POSITION_INDEPENDENT_CODE of targets.",
1457
1560
"This variable is used to initialize the "
1458
"POSITION_INDEPENDENT_CODE property on all the targets. "
1561
"POSITION_INDEPENDENT_CODE property on all the targets. "
1562
"See that target property for additional information.",
1564
"Variables that Control the Build");
1566
("CMAKE_<LANG>_VISIBILITY_PRESET", cmProperty::VARIABLE,
1567
"Default value for <LANG>_VISIBILITY_PRESET of targets.",
1568
"This variable is used to initialize the "
1569
"<LANG>_VISIBILITY_PRESET property on all the targets. "
1570
"See that target property for additional information.",
1572
"Variables that Control the Build");
1574
("CMAKE_VISIBILITY_INLINES_HIDDEN", cmProperty::VARIABLE,
1575
"Default value for VISIBILITY_INLINES_HIDDEN of targets.",
1576
"This variable is used to initialize the "
1577
"VISIBILITY_INLINES_HIDDEN property on all the targets. "
1459
1578
"See that target property for additional information.",
1461
1580
"Variables that Control the Build");