summaryrefslogtreecommitdiffstats
path: root/Help/command
Commit message (Collapse)AuthorAgeFilesLines
* Teach target_* commands to set INTERFACE properties of IMPORTED targetsDeniz Bahadir2017-10-266-19/+26
| | | | | | | | | | | Now, several `INTERFACE_*` properties can be set on `IMPORTED` targets, not only via `set_property` and `set_target_properties` but also via `target_compile_definitions`, `target_compile_features`, `target_compile_options`, `target_include_directories`, `target_sources` and `target_link_libraries`. Fixes: #15689 Issue: #17197
* Merge topic 'defer-target-source-check'Brad King2017-10-252-11/+13
|\ | | | | | | | | | | | | | | 4e7f6738 Defer check for sources within a target until generation. 6e4e7c65 Tests: Exclude bad RunCMake.add_executable case on multi-arch Xcode Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !1242
| * Defer check for sources within a target until generation.Deniz Bahadir2017-10-242-11/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The `add_library` and `add_executable` commands can now be called with no source-files and won't generate a warning or error message, as long as source-files will be added later via the `target_sources` command. If during the generation step still no sources are associated with targets created by such calls a useful error message will be generated and generation fails. Targets of type `INTERFACE_LIBRARY`, `UTILITY` or `GLOBAL_TARGET` are excluded from this check because we do not need sources for these target types during generation. Fixes: #16872
* | Merge topic 'help_parse_arguments'Brad King2017-10-241-10/+13
|\ \ | |/ |/| | | | | | | | | 546a3289 Help: Fix cmake_parse_arguments behavior for not found arguments Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !1397
| * Help: Fix cmake_parse_arguments behavior for not found argumentsSylvain Joubert2017-10-201-10/+13
| | | | | | | | | | Value keywords are actually UNDEFINED rather than set to the empty string when they are not found in the argument list.
* | file(DOWNLOAD|UPLOAD): Add 'NETRC' and 'NETRC_FILE' suboptionShane Parris2017-10-181-0/+25
|/
* Merge topic 'vs_improve_custom_command'Brad King2017-09-111-0/+10
|\ | | | | | | | | | | | | | | 9ed24280 VS: only add custom command line if it is not empty 34c4108b add HasOnlyEmptyCommandLines() method to cmCustomCommandGenerator Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !1050
| * VS: only add custom command line if it is not emptyMichael Stürmer2017-09-041-0/+10
| |
* | Timestamp: support %A and %BBernhard M. Wiedemann2017-09-071-0/+2
|/ | | | | | | | These are defined both by [1] and [2] to give full names of a weekday and month. [1] http://pubs.opengroup.org/onlinepubs/009695399/functions/strftime.html [2] https://msdn.microsoft.com/de-de/library/fe06s4ak.aspx
* Help: Fix formatting typo for the 'if' commandSylvain Joubert2017-08-181-1/+1
|
* Add PREPEND sub-command to string commandSylvain Joubert2017-08-111-0/+9
|
* Merge topic 'find-package_root-disable'Brad King2017-08-106-48/+14
|\ | | | | | | | | | | | | 578d95f8 find_*: Disable the PACKAGE_ROOT search path group for CMake 3.9 Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !1116
| * find_*: Disable the PACKAGE_ROOT search path group for CMake 3.9Brad King2017-08-086-48/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Disable the feature added by commit v3.9.0-rc1~71^2~2 (find_*: Add a new PackageRoot search path group, 2017-05-03) and remove documentation added by commit v3.9.0-rc1~71^2 (find_*: Add docs for PackageRoot search path group, 2017-05-03). Unfortunately the name `<pkg>_ROOT` may already be set by projects for their own incompatible purposes. Disable the behavior change for now to fix the regression for CMake 3.9. We can restore it later with a policy. In order to keep the implementation and tests working, add an undocumented variable we can use in the tests to enable the behavior before the policy is introduced. Fixes: #17144
* | Merge topic 'file_WRITE_docs'Brad King2017-08-041-2/+5
|\ \ | | | | | | | | | | | | | | | | | | d7472bbf file: Clarify directory creation behavior when using WRITE Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !1088
| * | file: Clarify directory creation behavior when using WRITERobert Dailey2017-08-031-2/+5
| |/ | | | | | | | | | | | | When using `file(WRITE)`, parent directories are also created. Documentation has been updated to explain this behavior. Co-Author: Craig Scott <craig.scott@crascit.com>
* | Help: Document that file(GLOB) result is sortedRuslan Baratov2017-08-031-3/+1
| | | | | | | | | | | | | | It has been sorted since commit v3.6.0-rc1~54^2 (file: Sort GLOB results to make it deterministic, 2016-05-14). That commit left the order unspecified in the documentation, but has been stable long enough to document now.
* | Merge topic 'doc_configure_file'Brad King2017-07-112-2/+4
|\ \ | | | | | | | | | | | | | | | | | | c7d81e16 Help: Explicitly state that some file generations are lazy Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !1025
| * | Help: Explicitly state that some file generations are lazySylvain Joubert2017-07-072-2/+4
| | | | | | | | | | | | Fixes: #16856
* | | configure_file: Add support for indented cmakedefineSylvain Joubert2017-07-041-0/+12
|/ / | | | | | | | | | | | | | | Optional spaces and/or tabs are now understood between the '#' character and the 'cmakedefine'/'cmakedefine01' words. This indentation is preserved in the output lines. Fixes: #13037
* | include_guard: add doc pages and a release notePavel Solodovnikov2017-06-221-0/+46
| |
* | Merge topic 'execute_process-pipeline-results'Brad King2017-06-121-1/+8
|\ \ | | | | | | | | | | | | | | | | | | d6051ca3 execute_process: Add option to get results of every child Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !702
| * | execute_process: Add option to get results of every childAdam Weisi2017-06-101-1/+8
| |/ | | | | | | | | Add a `RESULTS_VARIABLE` option to get the results of all children in a pipeline of one or more `COMMAND`s.
* | file(GENERATE): Add policy CMP0070 to define relative path behaviorBrad King2017-06-091-0/+5
| | | | | | | | | | | | | | | | | | Previously `file(GENERATE)` did not define any behavior for relative paths given to the `OUTPUT` or `INPUT` arguments. Define behavior consistent with CMake conventions and add a policy to provide compatibility for projects that relied on the old accidental behavior. Fixes: #16786
* | cmake_host_system_information: Add more keywordsFlorian Maushart2017-06-051-10/+31
|/ | | | | Extend the `cmake_host_system_information()` command to add processor identification keywords.
* Merge topic 'add-findpackage-root-prefix'Brad King2017-05-226-16/+50
|\ | | | | | | | | | | | | | | | | fe8f08d2 find_*: Add docs for PackageRoot search path group 57744ca9 find_*: Add tests for PackageRoot search path group ef3d360a find_*: Add a new PackageRoot search path group Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !796
| * find_*: Add docs for PackageRoot search path groupChuck Atkins2017-05-196-16/+50
| |
* | Help: Fix typo in add_library(... ALIAS ...) textGregor Jasny2017-05-141-1/+1
|/
* Help: Document HEADER_FILE_ONLY use caseRoman Lebedev2017-05-092-0/+7
| | | | Describe how to get sources into IDE project files.
* Merge topic 'ctest_submit_headers'Brad King2017-05-051-2/+8
|\ | | | | | | | | | | | | 1a7d00bd ctest_submit: Add HTTPHEADER option Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !793
| * ctest_submit: Add HTTPHEADER optionZack Galbreath2017-05-041-2/+8
| | | | | | | | | | | | | | | | | | Allow CTest script writers to specify additional HTTP headers to be sent to CDash during submission. The motivating case for this feature is a corresponding change in CDash. This will allow projects to refuse submissions from any site not bearing a valid authentication token.
* | Merge topic 'excludeFixtures'Brad King2017-05-022-0/+20
|\ \ | | | | | | | | | | | | | | | | | | c1b2b7c0 Add ctest options for limiting which tests fixtures add Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !778
| * | Add ctest options for limiting which tests fixtures addCraig Scott2017-05-012-0/+20
| |/ | | | | | | | | The new options allow the user to restrict the setup and cleanup tests automatically added for fixtures.
* | separgs: Add a NATIVE_COMMAND modeChristian Pfeiffer2017-04-261-3/+6
|/
* Drop Visual Studio 7 .NET 2003 generatorBrad King2017-04-191-1/+1
| | | | This generator has been deprecated since CMake 3.6. Remove it.
* Merge topic 'objlib-extend'Brad King2017-04-192-16/+16
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | eec93bce Allow OBJECT libraries to be installed, exported, and imported 93c89bc7 Genex: Allow TARGET_OBJECTS to be used everywhere ac0cf7ff Genex: Reject TARGET_OBJECTS on non-object libraries earlier 8577978c Tests: ExportImport C code should use explicit (void) in prototypes 26cfd039 cmInstallTargetGenerator: Re-order GenerateScriptForConfig logic 25f3f22a cmGlobalGenerator: Add method to check if object file location is known d596c550 cmGeneratorTarget: Add method to get the object file directory 930042f2 cmGeneratorTarget: Factor out a GetTargetObjectNames method ... Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !712
| * Allow OBJECT libraries to be installed, exported, and importedRobert Maynard2017-04-182-16/+16
| | | | | | | | | | | | | | | | Teach install() and export() to handle the actual object files. Disallow this on Xcode with multiple architectures because it still cannot be cleanly supported there. Co-Author: Brad King <brad.king@kitware.com>
* | Merge topic 'doc-CMAKE_MATCH_n'Brad King2017-04-192-21/+34
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | eb08e1fe Help: Document CMAKE_MATCH_<n> variables 8dd99752 Help: Link from if(MATCHES) to regex specification docs a0091a69 Help: Format string() command regex specification docs Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !719
| * | Help: Document CMAKE_MATCH_<n> variablesBrad King2017-04-182-1/+2
| | |
| * | Help: Link from if(MATCHES) to regex specification docsBrad King2017-04-182-1/+3
| | |
| * | Help: Format string() command regex specification docsBrad King2017-04-181-20/+30
| |/
* | Help: Document find command search path separatorsBrad King2017-04-182-2/+8
|/ | | | | | | | The `find_*` commands read search paths from both CMake variables and from environment variables. Document how multiple values in these variables should be separated. Fixes: #16800
* Merge topic 'project-description'Brad King2017-04-131-0/+5
|\ | | | | | | | | | | | | 3b484871 project: Add `DESCRIPTION` parameter Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !679
| * project: Add `DESCRIPTION` parameterAlex Turbov2017-04-111-0/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | It is quite often the project description has used in a real world software. Examples include: * part of a help screen of the application * builtin resources (`*.rc` files, data for "About" dialog of a GUI app, & etc) * most generators for CPack can use it * it could be used by documentary software (Doxygen, Sphinx) which is usually integrated to CMake based projects via `add_custom_target()` Now `project()` call learned an optional `DESCRIPTION` parameter with a short string describing a project. Being specified, it would set the `PROJECT_DESCRIPTION` variable which could be used in `configure_file()` or whatever user wants. Also `PROJECT_DESCRIPTION` is a default value for `CPACK_PACKAGE_DESCRIPTION_SUMMARY`.
* | Merge topic 'clarifyFileGenerateDocs'Brad King2017-04-101-0/+5
|\ \ | | | | | | | | | | | | | | | | | | d039f741 Help: Clarify file(GENERATE) only writes output file at generation phase Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !681
| * | Help: Clarify file(GENERATE) only writes output file at generation phaseCraig Scott2017-04-101-0/+5
| | | | | | | | | | | | Closes: #16556
* | | include_external_msproject: Honor MAP_IMPORTED_CONFIG_<CONFIG>Beeble2017-04-051-0/+4
| |/ |/| | | | | | | This allows projects added via `include_external_msproject` to compile the preferred configuration despite different naming conventions.
* | Add support for x32-abiSteven Newbury2017-03-071-1/+9
| | | | | | | | | | | | | | | | Detect x32-abi through CMakeCompilerABI infrastruture and use this information at runtime to determine the correct library paths with `FIND_LIBRARY_USE_LIBX32_PATHS`. Fixes: #15994
* | find_library: Allow custom lib suffix be used as find pathChristian Schmidbauer2017-03-011-0/+7
|/ | | | | | | | | | Add a new `CMAKE_FIND_LIBRARY_CUSTOM_LIB_SUFFIX` variable to allow use of a custom suffix on `lib` directory names. This is a more general option than that added by commit v3.7.0-rc1~504^2 (Teach find_library and find_package to search lib32 paths, 2016-06-10). It allows the find path to be more deterministic on custom setups. See discussion in #10287 and #15994.
* execute_process: Restore no-decoding default behaviorBrad King2017-02-131-1/+1
| | | | | | | | | | | Since commit v3.8.0-rc1~232^2 (execute_process: Add ENCODING option for Windows child process output, 2016-11-23) we decode child process output using the console's active codepage by default. This differs from previous versions of CMake and is therefore incompatible. Changing this default will require a policy, so for now revert the default behavior back to performing no decoding. Reported-by: Nils Gladitz <nilsgladitz@gmail.com>
* Help: Improve execute_process ENCODING option documentationBrad King2017-02-131-4/+15
| | | | Spell out the options in a definition list and document each one.