summaryrefslogtreecommitdiffstats
path: root/Help
Commit message (Collapse)AuthorAgeFilesLines
* {get,set}_property: Add support for referencing binary directoriesBrad King2020-09-234-9/+28
| | | | | | | Index directories by their binary directory path in addition to their source directory path. Fixes: #19262
* Merge topic 'cmake_path-updates'Brad King2020-09-221-47/+234
|\ | | | | | | | | | | | | | | 82c9508313 cmake_path: enhancements Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: Ben Boeckel <ben.boeckel@kitware.com> Merge-request: !5245
| * cmake_path: enhancementsMarc Chevrier2020-09-201-47/+234
| | | | | | | | | | * Fix error on parsing "c:a" (root-name without root-directory) * Enrich documentation
* | Merge topic 'comp-ti-std-options'Brad King2020-09-221-1/+1
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 6a66bb13ed Compiler/TI: Add std options for C++14 fe9cddf181 Compiler/TI: Add std options for C++98 55fc045aa8 Compiler/TI: Add std options for C11 2e69993101 Compiler/TI: Check default C standard 8300030f71 Compiler/TI: Check compiler version for C99 support 0b4582f229 Compiler/TI: Fix definition of std options a70df0d6f0 Compiler/TI: Avoid generic variable name in macro Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !5249
| * | Compiler/TI: Add std options for C++98Josef Angstenberger2020-09-201-1/+1
| |/ | | | | | | | | | | | | | | The TI compiler does not support C++98, only C++03 (based on manual of current version). This change sets the C++98 option to C++03 based on the fact that it is done this way for the SunPro compiler already.
* | Merge topic 'file-ARCHIVE-compression-level'Brad King2020-09-222-0/+10
|\ \ | | | | | | | | | | | | | | | | | | | | | 195d14e781 file(ARCHIVE_CREATE): Add option to control compression level Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: Cristian Adam <cristian.adam@gmail.com> Merge-request: !5242
| * | file(ARCHIVE_CREATE): Add option to control compression levelAsit Dhal2020-09-212-0/+10
| |/ | | | | | | Fixes: #21125
* | Merge topic 'findcudatoolkit_cross_scattered'Brad King2020-09-222-5/+7
|\ \ | | | | | | | | | | | | | | | | | | 9d3f7872e1 FindCUDAToolkit: Support scattered installations when crosscompiling Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !5247
| * | FindCUDAToolkit: Support scattered installations when crosscompilingRaul Tambre2020-09-202-5/+7
| |/ | | | | | | | | | | | | | | | | | | Previously when CMAKE_CROSSCOMPILING was ON we'd end up not setting the target directory if the non-scattered one didn't exist. Fix this by assuming a scattered installation if the target directory isn't set after the crosscompiling logic. This is the same fix as commit 2c0d5d01ee (CUDA: Support scattered installations when crosscompiling with Clang, 2020-09-14).
* | Merge topic 'xcode-12-new-build-system'Brad King2020-09-214-3/+55
|\ \ | |/ |/| | | | | | | | | | | | | | | | | | | | | | | | | b8ecd4df5f ExternalProject: Use CMP0114 NEW behavior with Xcode "new build system" fe258f6382 Tests: Skip RunCMake.XcodeProject device cases for Xcode "new build system" 1c3d2d0951 Tests: Skip Qt*Autogen.MocSkipSource case for Xcode "new build system" 542884e527 Tests: Update RunCMake.XcodeProject cases for Xcode "new build system" 832a78be2d Tests: Update BuildDepends test for Xcode "new build system" ff76c51ec3 Tests: Update RunCMake.file case with workaround for Xcode "new build system" 1806cdd17c Tests: Avoid duplicate custom commands for Xcode "new build system" 8d5f4c4db9 Xcode: Switch to the "new build system" for Xcode 12 and above ... Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !5229
| * Xcode: Switch to the "new build system" for Xcode 12 and aboveBrad King2020-09-183-1/+16
| | | | | | | | | | | | | | Provide an option to switch back to the original build system via `-T buildsystem=1`. Fixes: #18088
| * Xcode: Add option to specify build system variantBrad King2020-09-183-2/+39
| | | | | | | | | | | | Extend the `-T <toolset>` option to support a `buildsystem=` field with the Xcode generator. Add a `CMAKE_XCODE_BUILD_SYSTEM` variable to inform project code about the selected build system variant.
| * Help: Move CMAKE_XCODE_GENERATE_SCHEME to proper manual sectionBrad King2020-09-141-1/+1
| |
* | Merge topic 'string-json-support'Brad King2020-09-172-0/+108
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | 8eab76eb84 string(JSON): Adds JSON parsing support to the string command Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: Ben Boeckel <ben.boeckel@kitware.com> Acked-by: Cristian Adam <cristian.adam@gmail.com> Acked-by: Michael Hirsch, Ph.D. <michael@scivision.dev> Merge-request: !5159
| * | string(JSON): Adds JSON parsing support to the string commandPeter Steneteg2020-09-162-0/+108
| | | | | | | | | | | | | | | | | | | | | Adds a set of sub commands to the string command for parsing JSON, the JSON commands are: GET, TYPE, MEMBER, LENGTH, REMOVE, SET, and EQUAL. Closes: #19501
* | | Merge topic 'system-includes-for-clang-on-windows'Brad King2020-09-171-0/+5
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | bb61c2d024 Clang: use -imsvc for system include dirs when running on Windows Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: Raul Tambre <raul@tambre.ee> Acked-by: Thomas Bernard <thomas@famillebernardgouriou.fr> Merge-request: !5231
| * | | Clang: use -imsvc for system include dirs when running on WindowsAndrew Fuller2020-09-161-0/+5
| | | | | | | | | | | | | | | | Fixes #17808
* | | | Merge branch 'release-3.18' into masterBrad King2020-09-161-0/+1
|\ \ \ \ | |/ / / |/| | |
| * | | Help: Update 3.18.2 release notes to mention 3.16.9 and 3.17.5Brad King2020-09-151-0/+1
| | | | | | | | | | | | | | | | | | | | A change made in 3.18.2 was backported to the 3.16 and 3.17 branches. Update the 3.18 release note to mention them.
| * | | Merge branch 'release-3.17' into release-3.18Brad King2020-09-151-0/+9
| |\ \ \
| * \ \ \ Merge branch 'release-3.16' into release-3.18Brad King2020-09-151-5/+11
| |\ \ \ \
* | \ \ \ \ Merge topic 'ExternalProject-steps-refinement'Brad King2020-09-153-0/+91
|\ \ \ \ \ \ | | |_|_|_|/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | b4fc4da903 ExternalProject: Add policy CMP0114 to refine step target dependencies f5791e24c6 Tests: Match RunCMake.ExternalProject NO_DEPENDS output more strictly b637ef494c ExternalProject: Factor out an internal helper to add a step target Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !5215
| * | | | | ExternalProject: Add policy CMP0114 to refine step target dependenciesBrad King2020-09-143-0/+91
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | `ExternalProject_Add_StepTargets` and `INDEPENDENT_STEP_TARGETS` have some limitations and lack some sanity checks. They can cause confusing build systems to be generated. The basic problems are: * The notion of step independence is attached to the step target rather than the step itself. * The custom commands implementing the steps are duplicated in the step targets and the primary targets. This can cause races. It is also incompatible with the Xcode "new build system". Fix this by introducing policy CMP0114 to change the way step target dependencies are handled. Define independence from external dependencies as a property of each individual step regardless of whether there is a target for it. Add dependencies among the primary target and the step targets such that each custom command only appears in one target. When some steps are disconnected from the primary target, add step targets for the steps commonly depended upon so that there is a place to hold their custom commands uniquely. Fixes: #18663
* | | | | | Merge branch 'release-3.17' into masterBrad King2020-09-151-0/+9
|\ \ \ \ \ \ | | |_|_|/ / | |/| | | |
| * | | | | Help: Add 3.17.5 release note about AUTOMOC_PATH_PREFIX default changeJoerg Bornemann2020-09-151-0/+9
| | | | | |
| * | | | | Merge branch 'backport-3.16-automoc-path-prefix-off'Brad King2020-09-151-5/+11
| |\ \ \ \ \ | | | |_|/ / | | |/| | |
* | | | | | Merge branch 'release-3.16' into masterBrad King2020-09-151-5/+11
|\ \ \ \ \ \ | | |/ / / / | |/| | | |
| * | | | | Help: Add 3.16.9 release note about AUTOMOC_PATH_PREFIX default changeJoerg Bornemann2020-09-151-5/+11
| | | | | |
* | | | | | Merge topic 'cuda_clang_scattered_cross'Brad King2020-09-151-0/+5
|\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2c0d5d01ee CUDA: Support scattered installations when crosscompiling with Clang Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !5222
| * | | | | | CUDA: Support scattered installations when crosscompiling with ClangRaul Tambre2020-09-141-0/+5
| | |_|/ / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Previously when CMAKE_CROSSCOMPILING was ON we'd end up not setting the target directory if the non-scattered one didn't exist. Fix this by assuming a scattered installation if the target directory isn't set after the crosscompiling logic.
* | | | | | Merge topic 'import-export-doc'Brad King2020-09-1423-0/+1142
|\ \ \ \ \ \ | |/ / / / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 3310801aab Help: Add Importing and Exporting Guide Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: Michael Hirsch, Ph.D. <michael@scivision.dev> Merge-request: !5157
| * | | | | Help: Add Importing and Exporting GuideBetsy McPhail2020-09-1123-0/+1142
| | |_|_|/ | |/| | |
* | | | | Merge topic 'pch-instantiate-templates'Brad King2020-09-105-0/+29
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 8c8f03422e PCH: Template instantiation support Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: Raul Tambre <raul@tambre.ee> Acked-by: Cristian Adam <cristian.adam@gmail.com> Tested-by: Raul Tambre <raul@tambre.ee> Merge-request: !5168
| * | | | | PCH: Template instantiation supportTobias Hieta2020-09-025-0/+29
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Adds PCH_INSTANTIATE_TEMPLATES target property for enabling template instantiation in precompiled headers. Enabled by default. Currently only supported for Clang 11 and newer. Implements #21133.
* | | | | | Help: add_library(<name> OBJECT) can omit the source filesDeniz Bahadir2020-09-101-2/+2
| |/ / / / |/| | | |
* | | | | Merge topic 'custom-command-dedup'Brad King2020-09-103-0/+49
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 45fedf0e17 Makefile: Add policy CMP0113 to avoid duplication of custom commands 844779bdc1 cmMakefileTargetGenerator: Simplify custom command output collection Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !5204
| * | | | | Makefile: Add policy CMP0113 to avoid duplication of custom commandsBrad King2020-09-083-0/+49
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Do not attach a custom command to a target if it is already attached to one of the target's dependencies. The command's output will be available by the time the target needs it because the dependency containing the command will have already been built. This may break existing projects that do not properly mark non-created outputs with the `SYMBOLIC` property. Previously a chain of two custom commands whose intermediate dependency is not created would put both commands in a dependent project's Makefile even if the first command is also in its dependency's Makefile. The first command would run twice but the build would work. Now the second command needs an explicit `SYMBOLIC` mark on its input to tell CMake that it is not expected to exist. To maintain compatibility with projects that left out the mark, add a policy activating the behavior.
* | | | | | file(): Add REAL_PATH sub-commandMarc Chevrier2020-09-083-2/+22
|/ / / / /
* | | | | Merge topic 'ispc_improvements'Brad King2020-09-086-2/+34
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | a020787a9b ISPC: Support generation for multiple instruction sets 5a1750017e ISPC: Add compiler launcher support Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !5173
| * | | | | ISPC: Support generation for multiple instruction setsRobert Maynard2020-09-044-0/+32
| | | | | |
| * | | | | ISPC: Add compiler launcher supportRobert Maynard2020-09-032-2/+2
| | | | | |
* | | | | | Help: Fix typo in cmake_path(CMAKE_PATH) command signatureBrad King2020-09-081-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fix a typo accidentally added by commit eb583b0a66 (cmake_path command: path management, 2020-07-23). Remove a stray `]` character that breaks the pygments lexer.
* | | | | | cmake_path command: path managementMarc Chevrier2020-09-065-0/+667
| | | | | | | | | | | | | | | | | | | | | | | | Fixes: #19568, #20922
* | | | | | Help: Add note about #pragma onceKyle Edwards2020-09-031-0/+3
|/ / / / /
* | | | | Merge topic 'target_genex_dependency'Brad King2020-09-017-11/+114
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | f14b390198 GenEx: Remove unneeded dependencies from target info queries Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: Raul Tambre <raul@tambre.ee> Merge-request: !5127
| * | | | | GenEx: Remove unneeded dependencies from target info queriesRobert Maynard2020-09-017-11/+114
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Only generate a graph dependency between a custom command and a target when the custom command queries for the file path of an artifact of the target. This makes generator expressions such as `TARGET_FILE_DIR` behave the same way as `TARGET_PROPERTY` which never generated a graph dependency.
* | | | | | Merge topic 'xcode-link-phase-all'Craig Scott2020-09-015-0/+70
|\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 525464ed2a Xcode: Use "Link Binary With Libraries" build phase in some cases dc0898205c Xcode: Add special case for file type extension map for .xcassets 7b3d8411a2 Xcode: Refactor build setting append code and attribute getter naming Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !5036
| * | | | | | Xcode: Use "Link Binary With Libraries" build phase in some casesGusts Kaksis2020-08-315-0/+70
| |/ / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | OBJECT and STATIC libraries (framework or non-framework) do not use this build phase. Not all items to be linked use this build phase either. Co-Authored-By: Craig Scott <craig.scott@crascit.com>
* | | | | | Merge topic 'cuda_host_compiler_fail'Brad King2020-09-011-0/+6
|\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 01428c5560 CUDA: Fail fast if CMAKE_CUDA_ARCHITECTURES doesn't work during detection 9f81aa0f69 CUDA: Fail if compiler detection using the host compiler fails Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !5155
| * | | | | | CUDA: Fail fast if CMAKE_CUDA_ARCHITECTURES doesn't work during detectionRaul Tambre2020-08-291-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Also re-ordered the code to avoid testing flags for other compilers, since we know the vendor before full detection.