summaryrefslogtreecommitdiffstats
path: root/Help/command
Commit message (Collapse)AuthorAgeFilesLines
* Merge topic 'doc-math-EXPR'Brad King2016-10-171-4/+5
|\ | | | | | | | | c05d9b05 Help: Fix math(EXPR) documentation formatting
| * Help: Fix math(EXPR) documentation formattingBrad King2016-10-141-4/+5
| |
* | Help: Clarify `ctest_*` APPEND option behaviorBrad King2016-10-144-4/+12
|/ | | | | | Explicitly state that this marks the `.xml` to tell the dashboard server to append it to previously submitted results and that it does not cause results to be appended to the `.xml` file.
* Help: Clarify treatment of link flags in target_link_librariesJohn Beard2016-10-031-0/+6
|
* Merge topic 'ctest-capture-error'Brad King2016-09-215-2/+26
|\ | | | | | | | | | | | | adf1e32f Help: Add notes for topic 'ctest-capture-error' d328dc68 CTest: Add CAPTURE_CMAKE_ERROR val to `ctest_*` commands 9ac2e189 ctest_coverage: If gcov is not found just warn, not error
| * CTest: Add CAPTURE_CMAKE_ERROR val to `ctest_*` commandsBill Hoffman2016-09-205-2/+26
| | | | | | | | | | | | | | If a `ctest_*` command has CAPTURE_CMAKE_ERROR then any errors generated by cmake during that command will cause the value to be assigned `-1`. This will prevent a `ctest -S` script from returning non-zero unless the script explicitly calls `message(FATAL_ERROR)`.
* | Merge topic 'file-curl-httpheader'Brad King2016-09-161-0/+3
|\ \ | | | | | | | | | | | | 8f6cb366 file(DOWNLOAD|UPLOAD): Add HTTPHEADER suboption
| * | file(DOWNLOAD|UPLOAD): Add HTTPHEADER suboptionRuslan Baratov2016-09-151-0/+3
| | |
* | | Merge topic 'find_package-dir-sort'Brad King2016-09-161-4/+14
|\ \ \ | | | | | | | | | | | | | | | | 31be918b find_package: Optionally sort globbed directories in a meaningful order
| * | | find_package: Optionally sort globbed directories in a meaningful orderPierluigi Taddei2016-09-151-4/+14
| |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add `CMAKE_FIND_PACKAGE_SORT_{ORDER,DIRECTION}` variables to specify sort order and direction. When multiple package with the same name have been found in the same location sorting option can be used to force a specific version to be loaded (e.g. libA_1.12.0 instead of libA_1.1.0). Currently sorting by NAME and by NATURAL order have been implemented. Natural ordering makes use of the `strverscmp(3)` ordering.
* | | Help: Clarify wording of include() for builtin module directoriesBrad King2016-09-151-3/+3
|/ / | | | | | | Issue: #16312
* | Merge topic 'file-curl-userpw'Brad King2016-09-141-0/+3
|\ \ | | | | | | | | | | | | | | | abeb42f1 Help: Add notes for topic 'file-curl-userpw' e5ba1041 file(DOWNLOAD|UPLOAD): Add 'USERPWD' suboption
| * | file(DOWNLOAD|UPLOAD): Add 'USERPWD' suboptionRuslan Baratov2016-09-131-0/+3
| | |
* | | Merge topic 'add_androidmk_generator'Brad King2016-09-142-2/+27
|\ \ \ | |/ / |/| | | | | | | | | | | | | | 42ce9f1e Add support for creating prebuilt Android.mk files d5257063 Export: Virtualize file generation step helpers f81b9475 Export: Factor out file generation steps into helpers
| * | Add support for creating prebuilt Android.mk filesBill Hoffman2016-09-132-2/+27
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add options to the `install()` and `export()` commands to export the targets we build into Android.mk files that reference them as prebuilt libraries with associated usage requirements (compile definitions, include directories, link libraries). This will allow CMake-built projects to be imported into projects using the Android NDK build system. Closes: #15562
* | | Merge topic 'timestamp-names'Brad King2016-09-131-0/+2
|\ \ \ | | | | | | | | | | | | | | | | | | | | 410add40 Help: Add notes for topic 'timestamp-names' 751f7b52 string(TIMESTAMP ...): add '%a' and '%b' format specifiers
| * | | string(TIMESTAMP ...): add '%a' and '%b' format specifiersRuslan Baratov2016-09-121-0/+2
| | |/ | |/| | | | | | | | | | %b: Abbreviated month name (e.g. Oct). %a: Abbreviated weekday name (e.g. Fri).
* | | Help: Fix formatting in separate_arguments documentationJames Touton2016-09-121-5/+7
|/ / | | | | | | | | | | Make backslashes visible in the text. Rename VARIABLE to <var> in second signature for consistency with the first signature. Add link to referenced MSDN documentation.
* | cmake_parse_arguments: Add option to read arguments from ARGC/ARGV#Bill Hoffman2016-09-081-0/+11
|/ | | | | | | | | The `ARGC`/`ARGV#` variables in function scope hold the original arguments with no ;-list flattening. Add a way for functions to cleanly parse arguments that may contain `;`. This also avoids extra copying of the arguments. Co-Author: Brad King <brad.king@kitware.com>
* add_custom_command: Add DEPFILE option for NinjaKulla Christoph2016-08-301-0/+7
| | | | | | | | Provide a way for custom commands to inform the ninja build tool about their implicit dependencies. For now simply make use of the option an error on other generators. Closes: #15479
* Merge topic 'extend-find-package-search-path'Brad King2016-08-241-7/+10
|\ | | | | | | | | | | 828d6c13 find_package: Extend search path for combined Windows/UNIX convention ff5c89de Help: Widen find_package search path table
| * find_package: Extend search path for combined Windows/UNIX conventionSilvio Traversaro2016-08-241-0/+3
| | | | | | | | | | | | | | | | Find packages that install their cmake package configuration files in `lib/cmake/<name>` when they are installed in the default Windows CMAKE_INSTALL_PREFIX, `C:/Program Files/<name>`. Closes: #16212
| * Help: Widen find_package search path tableSilvio Traversaro2016-08-231-7/+7
| | | | | | | | Make room for additional longer entries.
* | Help: Clarify get_cmake_property command documentationBrad King2016-08-231-3/+8
|/ | | | Closes: #13810, #16258
* Add additional <= and >= comparison operatorsChuck Atkins2016-08-092-18/+47
| | | | | This adds the LESS_EQUAL, GREATER_EQUAL, and associated STR and VERSION equivalents to use the combined <= and >= functionality.
* Merge topic 'parent-scope-docs'Brad King2016-06-131-1/+3
|\ | | | | | | | | 42fe7d21 Help: clarify PARENT_SCOPE behavior
| * Help: clarify PARENT_SCOPE behaviorBen Boeckel2016-06-131-1/+3
| | | | | | | | Fixes #15093.
* | Teach find_library and find_package to search lib32 paths (#11260)Daniel Scharrer2016-06-101-0/+7
| | | | | | | | | | | | | | Add a ``FIND_LIBRARY_USE_LIB32_PATHS`` global property analogous to the ``FIND_LIBRARY_USE_LIB64_PATHS`` property. This helps find commands on multilib systems that use ``lib32`` directories and either do not have ``lib`` symlinks or point ``lib`` to ``lib64``.
* | Help: Document ctest_update branch following behaviorBrad King2016-06-081-0/+4
|/
* try_compile: Optionally forward custom platform variables to test projectBrad King2016-05-251-0/+4
| | | | | | | | | Add a `CMAKE_TRY_COMPILE_PLATFORM_VARIABLES` variable to specify a list of custom variables to be forwarded to a `try_compile` test project. This will be useful for platform information modules or toolchain files to forward some platform-specific set of variables from the host project (perhaps set in its cache) to the test project so that it can build the same way.
* file: Sort GLOB results to make it deterministic (#14491)Reiner Herrmann2016-05-171-2/+3
| | | | | | | | | | | | | | | | | Even though the `file(GLOB)` documentation specifically warns against using it to collect a list of source files, projects often do it anyway. Since it uses `readdir()`, the list of files will be unsorted. This list is often passed directly to add_executable / add_library. Linking binaries with an unsorted list will make it unreproducible, which means that the produced binary will differ depending on the unpredictable `readdir()` order. To solve those reproducibility issues in a lot of programs (which don't explicitly `list(SORT)` the list manually), sort the resulting list of the `file(GLOB)` command. A more detailed rationale about reproducible builds is available [here](https://reproducible-builds.org/).
* Drop find_(library|file|path) prefixes from PATH on non-WindowsBrad King2016-05-093-3/+6
| | | | | | | | | | | Since commit v3.3.0-rc1~430^2 (Teach find_(library|file|path) to get prefixes from PATH, 2015-02-18) we search in <prefix>/include and <prefix>/lib directories for prefixes with bin directories in the PATH environment variable. The motivation was to support MSYS, MinGW and similar Windows platforms in their default environments automatically. At the time this behavior was thought to be worthwhile in general. Suggested-by: Chuck Atkins <chuck.atkins@kitware.com>
* CustomCommandGenerator: Add support for CROSSCOMPILING_EMULATORJean-Christophe Fillion-Robin2016-05-092-4/+10
| | | | | | Teach the `add_custom_command` and `add_custom_target' commands to substitute argv0 with the crosscompiling emulator if it is a target with the `CROSSCOMPILING_EMULATOR` property set.
* Fix spelling typos in comments and documentation (#16037)Felix Geyer2016-03-292-2/+2
| | | | | The Debian package checker tool (lintian) detected several typos in CMake.
* Help: Organize and clarify `cmake_minimum_required` documentationBrad King2016-03-231-18/+27
| | | | | State more explicitly that `cmake_policy(VERSION)` is implied and explain the effects it has.
* Drop Visual Studio 6 generatorBrad King2016-03-092-3/+2
| | | | | | This generator has been deprecated since CMake 3.3. Remove it. Update documentation, modules, and tests to drop content specific to this generator.
* try_compile: Add option to control type of targetBrad King2016-02-191-0/+3
| | | | | | | Create a `CMAKE_TRY_COMPILE_TARGET_TYPE` option to specify use of `add_library(... STATIC ...)` for the generated test project. This will be useful for cross-compiling toolchains that cannot link a binary without custom flags or scripts.
* Merge topic 'unix-timestamps'Brad King2016-02-191-0/+1
|\ | | | | | | | | 6727270b CMake: Extend TIMESTAMP sub-commands with new unix time format specifier
| * CMake: Extend TIMESTAMP sub-commands with new unix time format specifierJose-Luis Blanco-Claraco2016-02-181-0/+1
| | | | | | | | | | | | | | | | The new `%s` format specifier is substituted by file()/string() `TIMESTAMP` sub-commands with the number of seconds since unix-epoch (1970-01-01 00:00:00 UTC). Co-Author: Nils Gladitz <nilsgladitz@gmail.com>
* | Help: Clarify install(TARGETS) INCLUDES DESTINATION optionBrad King2016-02-171-7/+12
|/ | | | | | | | The option does not actually participate in argument groups like the others because it does not actually install anything. Fix the order in the documentation accordingly. Reported-by: Daniel Wirtz <daniel.wirtz@simtech.uni-stuttgart.de>
* Merge topic 'install-EXCLUDE_FROM_ALL'Brad King2016-02-091-8/+15
|\ | | | | | | | | | | | | 586e56d0 Help: Add notes for topic 'install-EXCLUDE_FROM_ALL' d321c196 Tests: Add cases for install() command EXCLUDE_FROM_ALL option 18ce97c4 install: Add EXCLUDE_FROM_ALL option (#14921)
| * install: Add EXCLUDE_FROM_ALL option (#14921)Nick Lewis2016-02-041-8/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Let us take an example of a project that has some tests in a component that need to be installed into a dedicated test package. The user expectation is that the result could be achieved by typing the following: make make tests make install DESTDIR=/testpkgs make install-tests However this results in test components in the default installation as well as the testpkg. Add an EXCLUDE_FROM_ALL option to the install() command to tell it that the installation rule should not be included unless its component is explicitly specified for installation.
* | Merge topic 'fix-doc-typos'Brad King2016-02-081-1/+1
|\ \ | | | | | | | | | | | | | | | a3b91d16 Help: Fix command specification for cmake_minimum_required d8c90800 Help: Fix mistake in cmake-buildsystem(7) example
| * | Help: Fix command specification for cmake_minimum_requiredHorst Kronstorfer2016-02-081-1/+1
| |/ | | | | | | | | | | Implementation indicates that at least two components of VERSION must be specified (see Source/cmCMakeMinimumRequired.cxx.) Therefore the minor version is not optional.
* | list: Add FILTER subcommand (#3986)Ashley Whetter2016-02-031-3/+10
|/ | | | Create a `list(FILTER)` command to filter lists by regular expression.
* Help: Clarify `add_custom_command(TARGET)` scope (#15681)Bartosz Kosiorek2016-01-281-2/+5
|
* Help: Clarify scope of `if(TARGET)` expressionBartosz Kosiorek2016-01-281-3/+4
|
* Help: Improve markup in `if` command documentationBartosz Kosiorek2016-01-281-1/+1
|
* Help: Improve markup in `get_target_property` documentationBartosz Kosiorek2016-01-281-1/+1
|
* install: Allow generator expressions in DIRECTORYYves Frederix2016-01-131-3/+4
| | | | | Teach install(DIRECTORY) to support generator expressions in the list of directories, much like install(FILES) already supports.