Brad King
43ef704d51
Merge topic 'objc-xcode-flags'
...
bb42e1ed43 ObjC: Add OBJC/OBJCXX flags to Xcode projects
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !4020
2019-11-12 09:43:11 -05:00
Craig Scott
9a935adca9
Merge topic 'pch-no-duplicates'
...
e01935ac9d PCH: No repeated path for internal generated PCH files
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !4030
2019-11-12 08:28:46 -05:00
Craig Scott
27020c81d5
Merge topic 'remove-CPACK_INSTALL_CMAKE_CONFIGURATIONS'
...
1d1fa5d3e4 Tests: Add RunCMake.CPackCommandLine case for multi-config package
108207cc84 CPack: Remove CPACK_INSTALL_CMAKE_CONFIGURATIONS
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !4025
2019-11-12 08:16:31 -05:00
Brad King
1d1fa5d3e4
Tests: Add RunCMake.CPackCommandLine case for multi-config package
...
In commit da5ac4bb60 (cpack: Add `CPACK_INSTALL_CMAKE_CONFIGURATIONS`
variable, 2019-07-10, v3.16.0-rc1~165^2) we added support for running
the `cpack -C ...` command-line with multiple configurations. Add an
explicit test for this.
Fixes : #19918
2019-11-11 14:16:48 -05:00
Alex Turbov
108207cc84
CPack: Remove CPACK_INSTALL_CMAKE_CONFIGURATIONS
...
In commit da5ac4bb60 (cpack: Add `CPACK_INSTALL_CMAKE_CONFIGURATIONS`
variable, 2019-07-10, v3.16.0-rc1~165^2) we added both the variable
and support for `cpack -C` with multiple configurations. Drop the
variable because the `package` target cannot ensure that all of the
configurations are built. Keep the command-line interface so that
it can be used manually in scripts.
Fixes : #19918
2019-11-11 14:15:09 -05:00
Cristian Adam
bb42e1ed43
ObjC: Add OBJC/OBJCXX flags to Xcode projects
...
Fixes : #19936
2019-11-11 17:43:17 +01:00
Brad King
5e328c6d74
Merge topic 'objc-trycompile' into release-3.16
...
7447aa4b34 ObjC: Add try_compile support
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !4006
2019-11-11 10:25:47 -05:00
Brad King
ac7f41d20e
Merge topic 'objc-trycompile'
...
7447aa4b34 ObjC: Add try_compile support
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !4006
2019-11-11 10:25:47 -05:00
Cristian Adam
e01935ac9d
PCH: No repeated path for internal generated PCH files
...
Fixes : #19952
2019-11-11 13:21:12 +01:00
Cristian Adam
7447aa4b34
ObjC: Add try_compile support
...
Fixes : #19920
2019-11-09 11:25:32 +01:00
Kyle Edwards
87dcbe0b21
Merge topic 'ctest-resource-groups' into release-3.16
...
c1435d9812 Help: Fix error in resource allocation example
eb9d945f14 CTest: Rename hardware -> resources for RunCMake tests
c544cb6698 CTest: Rename hardware -> resources for source code
6ce27d3a2e cmCTestMultiProcessHandler: Rename resource locking functions
a7c1e15cc4 CTest: Rename hardware -> resources for CMake variables, command options
73a40b19ff CTest: Rename "Processes" lexer to "ResourceGroups"
af9ed543b0 CTest: Rename PROCESSES test property to RESOURCE_GROUPS
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !3994
2019-11-07 13:10:57 -05:00
Kyle Edwards
bea26f5aa0
Merge topic 'ctest-resource-groups'
...
016601e5e6 Merge branch 'backport-ctest-resource-groups'
c1435d9812 Help: Fix error in resource allocation example
eb9d945f14 CTest: Rename hardware -> resources for RunCMake tests
c544cb6698 CTest: Rename hardware -> resources for source code
6ce27d3a2e cmCTestMultiProcessHandler: Rename resource locking functions
a7c1e15cc4 CTest: Rename hardware -> resources for CMake variables, command options
73a40b19ff CTest: Rename "Processes" lexer to "ResourceGroups"
af9ed543b0 CTest: Rename PROCESSES test property to RESOURCE_GROUPS
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !3994
2019-11-07 13:10:57 -05:00
Brad King
74569996e8
Merge topic 'refactor-foreach'
...
53227a4ff2 Refactor: Modernize `foreach` code and fix some bugs
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !3986
2019-11-07 10:27:59 -05:00
Brad King
f7612a6668
Merge topic 'unity-include-generated'
...
7ddf462304 Unity build: Include GENERATED files into unity build
Acked-by: Kitware Robot <kwrobot@kitware.com >
Acked-by: Julien Schueller <schueller@phimeca.com >
Merge-request: !4001
2019-11-07 10:26:50 -05:00
Brad King
02ed66c04b
Merge topic 'unity-include-generated' into release-3.16
...
7ddf462304 Unity build: Include GENERATED files into unity build
Acked-by: Kitware Robot <kwrobot@kitware.com >
Acked-by: Julien Schueller <schueller@phimeca.com >
Merge-request: !4001
2019-11-07 10:26:49 -05:00
Cristian Adam
7ddf462304
Unity build: Include GENERATED files into unity build
...
There is no reason to skip the generated files, in case of problems
one can use the SKIP_UNITY_BUILD_INCLUSION property.
Fixes : #19925
2019-11-06 11:47:15 -05:00
Brad King
ce7408514c
Merge topic 'install-name-dir-genex'
...
a0e2e0ca97 Help: Add documentation and release notes for INSTALL_NAME_DIR genex
deeab72aae Tests: Add tests for INSTALL_NAME_DIR
3c85f11fed INSTALL_NAME_DIR: Add support for generator expressions
2ec1156b80 Refactor: Generalize cmExportInstallFileGenerator::ReplaceInstallPrefix()
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !3989
2019-11-06 09:32:22 -05:00
Brad King
bae7a82ffa
Merge topic 'xcode-restore-CMakeLists' into release-3.16
...
0ce8a5c08d Xcode: Fix generated references to CMakeLists.txt files
9457c95aa0 cmGlobalXCodeGenerator: Mark known source locations
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !3999
2019-11-06 09:23:56 -05:00
Brad King
30908fa0ee
Merge topic 'xcode-restore-CMakeLists'
...
0ce8a5c08d Xcode: Fix generated references to CMakeLists.txt files
9457c95aa0 cmGlobalXCodeGenerator: Mark known source locations
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !3999
2019-11-06 09:23:56 -05:00
Alex Turbov
53227a4ff2
Refactor: Modernize foreach code and fix some bugs
...
- fix the typo in `foreach` documentation
- fix broken `foreach(... IN ITEMS ... LISTS ...)`
- add tests of `foreach` for existed functionality and fixes
2019-11-06 16:14:47 +02:00
Brad King
0ce8a5c08d
Xcode: Fix generated references to CMakeLists.txt files
...
Refactoring in commit 2d888e3390 (cmSourceFile: Rename mutating
GetFullPath() overload, 2019-08-29, v3.16.0-rc1~160^2) accidentally left
the paths to `CMakeLists.txt` files empty in generated Xcode project
files.
Fixes : #19927
2019-11-05 14:29:41 -05:00
Brad King
016601e5e6
Merge branch 'backport-ctest-resource-groups'
2019-11-05 12:59:16 -05:00
Craig Scott
eb9d945f14
CTest: Rename hardware -> resources for RunCMake tests
...
Also includes variants like hw -> res
2019-11-05 12:08:35 -05:00
Craig Scott
c544cb6698
CTest: Rename hardware -> resources for source code
2019-11-05 12:08:35 -05:00
Craig Scott
a7c1e15cc4
CTest: Rename hardware -> resources for CMake variables, command options
...
Only changes the user-visible effects of renaming hardware
allocation to resource allocation. Code changes are the minimum
needed to achieve that.
2019-11-05 12:08:35 -05:00
Brad King
af9ed543b0
CTest: Rename PROCESSES test property to RESOURCE_GROUPS
...
The `PROCESSES` test property name added for CMake 3.16 is too close to
the existing `PROCESSORS` test property. Furthermore, the property in
principle specifies groups of resources organized in a way that is
meaningful to a particular test. The groups may often correspond to
processes but they could have other meanings. Since the property name
`PROCESSES` has not been in a final 3.16 release yet, simply rename it
to `RESOURCE_GROUPS`.
Fixes : #19914
2019-11-05 12:08:01 -05:00
Brad King
0ec60a4002
Merge branch 'source_group-tree' into release-3.16
...
Merge-request: !3979
2019-11-05 11:31:16 -05:00
Brad King
cb165b8b79
Merge topic 'source_group-tree'
...
3c0ca5a9d9 source_group: ensure that passed file is not a directory
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !3979
2019-11-05 11:30:27 -05:00
Brad King
57db062414
Merge topic 'ctest-repeat-until-pass'
...
30e79bb4a3 Tests: Extend RunCMake.CTestCommandLine internal timeout for valgrind
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !3987
2019-11-05 10:55:41 -05:00
Kyle Edwards
deeab72aae
Tests: Add tests for INSTALL_NAME_DIR
2019-11-04 19:02:16 -05:00
Craig Scott
9667996923
Merge topic 'message-check-types'
...
7b2dd9dedc Refactor: Use added message types in various modules
949a1e120a message: New message types to mark checks performed by CMake
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !3689
2019-11-04 14:11:45 -05:00
Mateusz Janek
3c0ca5a9d9
source_group: ensure that passed file is not a directory
...
Fixes : #19769
2019-11-04 13:37:41 -05:00
Brad King
30e79bb4a3
Tests: Extend RunCMake.CTestCommandLine internal timeout for valgrind
...
A case added by commit 39ac8b4eb5 (ctest: Add --repeat-after-timeout
option, 2019-10-29) includes a success-case timeout of 2 seconds. That
is too short when running under valgrind, so extend it to 5 seconds.
2019-11-04 11:22:58 -05:00
Brad King
abac3a31a2
Merge topic 'root-dir-assertion-fix'
...
0692eaf0fe ForceToRelativePath: Fix spurious assertion when local path is root dir
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !3976
2019-11-04 10:24:31 -05:00
Brad King
1463cfb437
Merge topic 'pgi-license-warnings'
...
59673bb2dc Tests: Teach RunCMake to ignore PGI license expiry warnings
210d04bb79 CTestCustom: Suppress PGI Community Edition compiler license warnings
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !3975
2019-11-04 10:12:26 -05:00
Alex Turbov
949a1e120a
message: New message types to mark checks performed by CMake
...
Closes #19638 .
Co-Authored-By: Craig Scott <craig.scott@crascit.com >
2019-11-02 14:10:09 +02:00
Craig Scott
0692eaf0fe
ForceToRelativePath: Fix spurious assertion when local path is root dir
...
Fixes : #19909
2019-11-02 17:54:13 +11:00
Brad King
59673bb2dc
Tests: Teach RunCMake to ignore PGI license expiry warnings
...
These are not useful in nightly testing.
2019-11-01 09:23:03 -04:00
Brad King
39ac8b4eb5
ctest: Add --repeat-after-timeout option
...
Add an option to re-run tests if they timeout. This will help tolerate
sporadic timeouts on busy machines.
2019-10-29 15:14:36 -04:00
Brad King
80c2c9d14c
ctest: Add --repeat-until-pass option
...
Add an option to re-run tests if they fail. This will help tolerate
sporadic failures.
Issue: #17010
Co-Author: Ben Boeckel <ben.boeckel@kitware.com >
Co-Author: Chuck Atkins <chuck.atkins@kitware.com >
2019-10-29 15:10:12 -04:00
Brad King
336a826f77
Merge topic 'framework-tests-multiarch-old-macos'
...
3e30c4cc1f Tests: Match file command output for older macOS (Framework test)
89ad3b3959 Tests: Prevent CMP0012 policy warnings in Framework test output
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !3954
2019-10-28 10:10:37 -04:00
Brad King
62267715fe
Merge branch 'framework-tests-multiarch-old-macos' into release-3.16
...
Merge-request: !3954
2019-10-28 10:09:29 -04:00
Craig Scott
cdcc173e23
Merge topic 'project-version-buffer-overflow'
...
82cdb26c93 project: Fix potential buffer write-past-end for version components
15a0b0d046 Help: math() expressions must be representable as signed 64-bit
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !3948
2019-10-28 06:50:22 -04:00
Craig Scott
3e30c4cc1f
Tests: Match file command output for older macOS (Framework test)
2019-10-27 23:48:41 +11:00
Craig Scott
89ad3b3959
Tests: Prevent CMP0012 policy warnings in Framework test output
2019-10-27 23:28:17 +11:00
Craig Scott
82cdb26c93
project: Fix potential buffer write-past-end for version components
...
This fixes two errors: not accounting for the trailing null and a
misunderstanding of what std::numeric_limits::digits10 means.
2019-10-26 17:50:24 +11:00
Brad King
53f95dc5fb
Merge topic 'export-compile-commands-environment-variable'
...
8065a686dd Initialize CMAKE_EXPORT_COMPILE_COMMANDS from envvar of the same name
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !3914
2019-10-21 11:23:47 -04:00
Brad King
50afd147f8
Merge topic 'vs-per-config-sources'
...
55a0bebdd3 VS: Add support for per-config sources
bcaecf6bcd Teach check for single-language targets to consider all configurations
324988a6b1 cmGeneratorTarget: Add GetAllConfigCompileLanguages method
fd2c9fac10 cmGeneratorTarget: Return non-const sources from GetAllConfigSources
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !3882
2019-10-21 11:12:06 -04:00
Daan De Meyer
8065a686dd
Initialize CMAKE_EXPORT_COMPILE_COMMANDS from envvar of the same name
...
Fixes : #18386
2019-10-18 14:37:33 -04:00
Brad King
fdb41a5102
Merge topic 'variable_watch-modernize'
...
4bedf6c9fa Refactor: Modernize `cmVariableWatchCommand` a little
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !3892
2019-10-18 09:02:29 -04:00