Jean-Christophe Fillion-Robin
207373802e
Fix typos identified using codespell
...
See https://github.com/codespell-project/codespell#readme
The following command was used:
```
codespell -q6 --skip="\
.git,\
*.json,\
./Copyright.txt,\
./Help/command/foreach.rst,\
./Help/prop_test/REQUIRED_FILES.rst,\
./Help/variable/CTEST_COVERAGE_COMMAND.rst,\
./Modules/CMakeCheckCompilerFlagCommonPatterns.cmake,\
./Modules/CMakeRCInformation.cmake,\
./Modules/Internal/CPack/NSIS.template.in,\
./Modules/FindMatlab.cmake,\
./Modules/MatlabTestsRedirect.cmake,\
./Modules/Platform/Windows-Clang.cmake,\
./Modules/Platform/Windows-Intel-Fortran.cmake,\
./Modules/Platform/Windows-MSVC.cmake,\
./Source/CMakeVersion.cmake,\
./Source/cmConvertMSBuildXMLToJSON.py,\
./Source/cmCreateTestSourceList.cxx,\
./Source/cmGlobalVisualStudio10Generator.cxx,\
./Source/cmExportBuildFileGenerator.cxx,\
./Source/cmExportInstallAndroidMKGenerator.cxx,\
./Source/cmExportInstallFileGenerator.cxx,\
./Source/cmExportSet.cxx,\
./Source/cmExportTryCompileFileGenerator.cxx,\
./Source/cmFindPackageCommand.cxx,\
./Source/cmInstallCommand.cxx,\
./Source/cmGeneratorExpressionLexer.cxx,\
./Source/cmLocalVisualStudio7Generator.cxx,\
./Source/cmOrderDirectories.cxx,\
./Source/cmTarget.cxx,\
./Source/kwsys/*,\
./Source/QtDialog/CMakeSetupDialog.ui,\
./Source/CPack/WiX/cmWIXRichTextFormatWriter.cxx,\
./Source/CTest/cmParseCoberturaCoverage.h,\
./Tests/CMakeTests/ImplicitLinkInfoTest.cmake.in,\
./Tests/RunCMake/CPack/tests/DMG_SLA/English.license.rtf,\
./Tests/RunCMake/CPack/tests/DMG_SLA/German.license.txt,\
./Tests/RunCMake/CPack/tests/DMG_SLA/German.menu.txt,\
./Tests/RunCMake/GoogleTest/xml_output.cpp,\
./Tests/RunCMake/Make/TargetMessages*,\
./Utilities/*,\
" \
-L "\
dependees,\
endwhile,\
fo,\
filetest,\
helpfull,\
nd,\
objext,\
stoll,\
supercedes,\
superceded,\
vas,\
varn,\
"
```
2020-07-22 12:44:47 -04:00
Sibi Siddharthan
2fad00940d
cmake: Add -E create_hardlink
...
Fixes : #20950
Signed-off-by: Sibi Siddharthan <sibisiddharthan.github@gmail.com >
2020-07-15 20:22:04 +05:30
Craig Scott
32e13e5291
Merge topic 'ctest-resource-spec-file-doc'
...
c57695a2f4 Help: Clarify search order for resource spec file
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !4983
2020-07-08 09:06:54 -04:00
Kyle Edwards
c57695a2f4
Help: Clarify search order for resource spec file
...
Clarify the order in which --resource-spec-file, RESOURCE_SPEC_FILE,
and CTEST_RESOURCE_SPEC_FILE are searched, and add tests to
enforce this.
Fixes : #20914
2020-07-07 12:21:58 -04:00
Craig Scott
8975c2a55b
Merge topic 'remove-warn-unused-vars'
...
df6b077625 cmake: Remove broken '--warn-unused-vars' option
Acked-by: Kitware Robot <kwrobot@kitware.com >
Acked-by: Ben Boeckel <ben.boeckel@kitware.com >
Merge-request: !4953
2020-07-01 07:03:54 -04:00
Kyle Edwards
b67eb65688
Help: Update FileAPI codemodel version to 2.2, add release notes
...
This fixes the documentation which should have been fixed in 7d6861f3 .
2020-06-30 14:05:23 -04:00
Kyle Edwards
849178c9d0
Merge branch 'master' into fileapi-version-doc
2020-06-30 14:04:25 -04:00
Kyle Edwards
e9be17ab42
Help: Update FileAPI codemodel version to 2.1, add release notes
...
This fixes the documentation which should have been fixed in 9f6d40ee .
2020-06-30 14:04:13 -04:00
Brad King
df6b077625
cmake: Remove broken '--warn-unused-vars' option
...
This option has been broken since commit b9f9915516 (cmMakefile: Remove
VarUsageStack., 2015-05-17, v3.3.0-rc1~52^2). That commit removed the
check that an initialized variable has actually been used and caused the
option to warn on every variable ever set. This was not caught by the
test suite because the test for the feature only checked that warnings
appear when needed and not that they do not appear when not needed.
The option was never very practical to use. Remove it to avoid the
runtime cost of usage tracking and checks for every variable (which we
were doing even when the option was not used).
2020-06-29 17:23:27 -04:00
Brad King
f2b84d24cf
Merge topic 'fileApiAddLanguageStandardBacktrace'
...
7d6861f367 fileapi: Extend codemodel targets with language standard
ba835874a4 Add backtrace support for language standard
e43486a639 cmGeneratorTarget: Clarify name of language property lookup helper
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !4798
2020-06-29 08:25:42 -04:00
Kyle Edwards
5fc7c14528
Merge topic 'install-default-directory-permissions'
...
d4812a955b cmake-install: implement default directory permissions
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !4927
2020-06-26 10:26:57 -04:00
Justin Goshi
7d6861f367
fileapi: Extend codemodel targets with language standard
2020-06-26 08:52:29 -04:00
Asit Dhal
d4812a955b
cmake-install: implement default directory permissions
...
provide an argument for default directory permissions in cmake --install
Fixes : #20700
2020-06-25 14:43:30 -04:00
Robert Maynard
eae15dce6a
Genex: $<CONFIG:> now supports multiple configurations
...
Instead of having to do $<OR:$<CONFIG:Release>,$<CONFIG:MinSizeRel>>
you can do $<CONFIG:Release,MinSizeRel>
2020-06-24 08:38:28 -04:00
Brad King
c26853718e
Merge topic 'improve_device_link_policy_cross_ref' into release-3.18
...
e5279c2c8f Help: Better document that CMP0105 controls DEVICE_LINK parsing
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !4919
2020-06-18 12:45:27 -04:00
Brad King
d1492e93cf
Merge topic 'improve_device_link_policy_cross_ref'
...
e5279c2c8f Help: Better document that CMP0105 controls DEVICE_LINK parsing
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !4919
2020-06-18 12:45:27 -04:00
Brad King
4b6ba7c3d8
Merge topic 'doc-3.18-fixups'
...
947cfc732d Help: Explicitly say transaction, don't abbreviate to trans
90c73479bc Help: Correct and condense examples for VS_SOLUTION_DEPLOY
0420de10b5 Help: Add missing cross-referencing for generator expressions
013f7a2647 Help: Formatting, crossref for FRAMEWORK_MULTI_CONFIG_POSTFIX_<CONFIG>
a12d53acf3 Help: Add missing PCH_WARN_INVALID docs and related cleanups
95a16f7805 Help: Fix formatting error and consistency for gtest_discover_tests()
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !4915
2020-06-18 12:44:14 -04:00
Robert Maynard
e5279c2c8f
Help: Better document that CMP0105 controls DEVICE_LINK parsing
2020-06-18 12:07:26 -04:00
Craig Scott
a12d53acf3
Help: Add missing PCH_WARN_INVALID docs and related cleanups
2020-06-18 20:26:03 +10:00
Brad King
158c6511e0
Merge topic 'cmake-E-compare_files-exit-code'
...
b5b6075522 cmake: add dedicated error for -E compare_files invalid arguments
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !4881
2020-06-16 09:09:32 -04:00
Asit Dhal
b5b6075522
cmake: add dedicated error for -E compare_files invalid arguments
...
Return 2 when user provides invalid arguments
Fixes : #20815
2020-06-15 12:39:37 -04:00
Brad King
9d45a8be08
find_program: Find programs that are executable but not readable
...
This fix was first made by commit 86e6349ef7 (find_program: Find
programs that are executable but not readable, 2020-04-04,
v3.18.0-rc1~372^2) but was reverted for compatibility. Re-introduce it
with a policy for compatibility.
Fixes : #10468
2020-06-15 11:58:47 -04:00
Marc Chevrier
056489d567
add_library/add_executable: allow local alias to imported targets
...
Fixes : #20641
2020-06-02 17:11:47 +02:00
Marc Chevrier
9436ad35df
target_link_libraries: self-link through ALIAS is an error
...
Fixes : #19617
2020-05-30 11:47:39 +02:00
Marc Chevrier
1eca5993e2
ALIAS target: cannot overwrite an existing target
...
Fixes : #19616
2020-05-28 12:56:59 -04:00
Brad King
a354b7f21e
Merge topic 'CheckLinkerFlag-module'
...
af96c0f4fa CheckLinkerFlag: Add module to check validity of linker flags
3c4cc77d55 Tests: Extend Fortran compiler information
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !4777
2020-05-25 10:59:01 -04:00
Marc Chevrier
af96c0f4fa
CheckLinkerFlag: Add module to check validity of linker flags
...
Fixes : #15934
2020-05-25 10:57:14 -04:00
Brad King
15b9b41d72
Merge topic 'fileApiAddPrecompileHeadersBacktrace'
...
9f6d40ee23 fileapi: Extend codemodel targets with PRECOMPILE_HEADERS
b698764a31 Tests: Add a PCH example to RunCMake.FileAPI codemodel-v2
b3812c0e54 Tests: Fix indentation in RunCMake.FileAPI cxx_exe.json
9c48804b69 PCH: Fix source group of per-architecture PCH headers
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !4684
2020-05-25 10:40:56 -04:00
Justin Goshi
9f6d40ee23
fileapi: Extend codemodel targets with PRECOMPILE_HEADERS
2020-05-22 11:26:55 -04:00
Brad King
62816ff88c
Merge topic 'fortran-preprocess-property'
...
3888de23da Ninja: Skip Fortran preprocessing if Fortran_PREPROCESS is OFF
66c4e87282 Ninja: Add helper functions to generate Fortran build
5cca1ec893 Ninja: Add helper functions to generate Fortran preprocess rule
b0a6161190 Fortran: Add Fortran_PREPROCESS property
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !4659
2020-05-22 10:35:10 -04:00
Brad King
94c1e4fdb3
cmake_language: Rename command from cmake_command
...
Also rename the `INVOKE` signature to `CALL`.
Fixes : #20732
2020-05-21 13:36:52 -04:00
Peter Hill
b0a6161190
Fortran: Add Fortran_PREPROCESS property
...
Issue: #18870
2020-05-21 11:44:14 -04:00
Brad King
a9559ccba5
Merge topic 'objc-env-vars'
...
13ea190725 Help: Add 3.17.3 release note for Objective C/C++ compiler selection
16bf978e0c Merge branch 'backport-3.16-objc-env-vars' into objc-env-vars
67b9f55d46 Objective C/C++: Honor CC and CXX env vars to select compiler
ab9be6662f Help: Document OBJC and OBJCXX env vars for Objective C/C++ compilers
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !4746
2020-05-15 09:15:46 -04:00
Brad King
16bf978e0c
Merge branch 'backport-3.16-objc-env-vars' into objc-env-vars
2020-05-14 07:27:24 -04:00
Brad King
ab9be6662f
Help: Document OBJC and OBJCXX env vars for Objective C/C++ compilers
2020-05-14 07:10:06 -04:00
Brad King
cee7eb8b3a
Merge topic 'unity_explicit_groups'
...
9f4eb352fe Unity Builds: Support explicit specification of sources to groups
b00585adcc Unity: Refactor implementation to make it easier to extend
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !4716
2020-05-11 10:08:12 -04:00
Robert Maynard
9f4eb352fe
Unity Builds: Support explicit specification of sources to groups
...
Instead of having CMake determine which files should go into each
unity file, the user can now use explicitly state the mapping.
2020-05-07 11:13:34 -04:00
Alex Turbov
e4f1b301fe
cmake: Allow arbitrary args passed to CMake script
2020-05-06 21:40:36 +10:00
Julien Jemine
197b4cbe18
VS: Add option for per-target PlatformToolset
...
Add a `VS_PLATFORM_TOOLSET` target property to set `PlatformToolset` in
the `.vcxproj` file for specific targets. Document that this is safe
only when the named toolset uses the same underlying compiler as the
primary toolset.
Fixes : #17429
2020-04-29 07:35:57 -04:00
Brad King
0e3a2d9b16
Merge topic 'ccmake-custom-colors'
...
671fe28313 ccmake: Improve coloring, allow customization
f56a695440 ccmake: Rename cmCursesColor::{Options => Choice}
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !4629
2020-04-27 10:40:25 -04:00
Matthew Woehlke
671fe28313
ccmake: Improve coloring, allow customization
...
Change the default color for strings from BLUE (which is nearly
illegible on any terminals using the standard color palette which has
been around since at least CGA, almost 40 years ago) to CYAN. Add
ability to customize the colors via an environment variable (inspired by
LS_COLORS and using similar syntax).
Fixes : #20596
2020-04-24 11:21:13 -04:00
Brad King
61ac8e6dfa
Merge topic 'remove-documentation-module'
...
306a1ba960 Modules/Documentation: remove
ad4487a96a cmIncludeCommand: add infrastructure for deprecated modules
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !4617
2020-04-23 09:15:24 -04:00
Ben Boeckel
306a1ba960
Modules/Documentation: remove
...
This is an old module from when VTK and other Kitware projects drove the
addition of commands and modules into CMake itself. Modern VTK doesn't
need this module and it can be ignored.
This module is kept around so that the ancient VTK versions which use it
are not broken by it. VTK itself stopped using the module in 2012 and
the last usage by an example in VTK was removed in 2020.
Fixes : #20591
2020-04-22 10:46:03 -04:00
Brad King
f9fbc78cd6
Merge topic 'ctest_stop_on_failure_16628'
...
e89aeba5c4 ctest: add option --stop-on-failure
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !4630
2020-04-22 08:38:33 -04:00
Johnny Jazeix
e89aeba5c4
ctest: add option --stop-on-failure
...
To stop the tests once one has failed
Fixes : #16628
2020-04-20 23:05:15 +02:00
Marc Chevrier
4248bb452a
CUDA: Device linking use now link options
...
properties LINK_OPTIONS and INTERFACE_LINK_OPTIONS are propagated
to the device link step.
To control which options are selected for normal link and device link steps,
the $<DEVICE_LINK> and $<HOST_LINK> generator expressions can be used.
Fixes : #18265
2020-04-19 15:53:11 +02:00
Marc Chevrier
3fdae5acaa
Genex: Add generator expressions $<DEVICE_LINK> and $<HOST_LINK>
...
These generator expressions can only be used in link options properties.
These expressions return the arguments respectively for device and host link
step, otherwise return an empty string.
2020-04-19 15:04:54 +02:00
Kyle Edwards
5f20e85412
Merge topic 'cat_cmd_20557'
...
a625f30785 cmake -E: add cat command.
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !4600
2020-04-16 11:35:55 -04:00
Brad King
7e8df1bb24
Merge topic 'cuda_architectures'
...
21131ca60c CUDA: Add CudaOnly.CompileFlags test
f0931b0790 CUDA: Convert tests to use CUDA_ARCHITECTURES
e98588aaba CUDA: Add CUDA_ARCHITECTURES target property
Acked-by: Kitware Robot <kwrobot@kitware.com >
Acked-by: Patrick Stotko <stotko@cs.uni-bonn.de >
Merge-request: !4568
2020-04-16 11:11:33 -04:00
Johnny Jazeix
a625f30785
cmake -E: add cat command.
...
Concatenate files and print on the standard output.
FIXES : #20557
2020-04-15 20:56:56 +02:00