Commit Graph

22794 Commits

Author SHA1 Message Date
Daniel Pfeifer
bd14e46400 cmCommands: use new methods for builtin commands 2017-05-11 19:49:06 +02:00
Daniel Pfeifer
587084052b cmState: introduce methods for adding builtin commands 2017-05-11 19:49:06 +02:00
Daniel Pfeifer
a890ca2f8d cmakemain: use script role for -P 2017-05-11 17:57:59 +02:00
Brad King
8e2f3582eb Merge topic 'split-sysroot'
53e89b6a Add options for separate compile and link sysroots

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !819
2017-05-11 10:00:12 -04:00
Brad King
c2ea011830 Merge topic 'cpackifw-access-refactoring'
543cf134 CPackIFW: Access refactoring

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !820
2017-05-11 09:56:49 -04:00
Brad King
9b79d2a357 Merge topic 'CMP0069-no-warn-try_compile'
469813cc CMP0069: Suppress warning if we are in 'try_compile'

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !823
2017-05-11 09:55:12 -04:00
Brad King
99b1ff714b Merge topic 'dead-code-removal'
fdd341eb cmFindCommon: remove unused function SetMakefile
67a8d907 cmExecutionStatus: Remove arguments from setters
0c519c70 bootstrap: Remove leftovers from cmBootstrapCommands

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !821
2017-05-11 09:54:19 -04:00
Kitware Robot
f1b9fe5fc4 CMake Nightly Date Stamp 2017-05-11 00:01:06 -04:00
Daniel Pfeifer
fdd341ebfd cmFindCommon: remove unused function SetMakefile 2017-05-10 15:58:28 +02:00
Ruslan Baratov
469813cce0 CMP0069: Suppress warning if we are in 'try_compile'
Fixes: #16855
2017-05-10 09:41:40 -04:00
Brad King
d43eb3aec2 Merge topic 'vs-project-guid'
776929b3 VS: Fix .vcxproj ProjectGuid element case

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !817
2017-05-10 09:27:10 -04:00
Brad King
8a19ce4767 Merge topic 'ninja-windows-command-concat'
5e0e03d9 Ninja: Fix command concatenation on Windows

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !801
2017-05-10 09:23:43 -04:00
Brad King
53f1f55599 Merge topic 'separate-command-registration'
44c0b2b7 cmCommand: remove IsScriptable
da8faa8c cmState: remove RemoveUnscriptableCommands
c3f41af2 cmMakefile: don't check IsScriptable
c2c2bbb3 cmake: register fake project commands in -P mode
c36d63cd cmake: initialize with Role that controls which commands to register
8986dec0 ctest: remove unused cmake instance

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !714
2017-05-10 09:22:46 -04:00
Kitware Robot
730cd10c64 CMake Nightly Date Stamp 2017-05-10 00:01:04 -04:00
Daniel Pfeifer
67a8d907ad cmExecutionStatus: Remove arguments from setters
The setters are only used to set boolean values.  The values are never
reset individually.
2017-05-09 23:49:14 +02:00
Konstantin Podsvirov
543cf13406 CPackIFW: Access refactoring
Changes:
- Access members with this->;
- Access nested enum values with class name.
2017-05-10 00:29:18 +03:00
Brad King
53e89b6ab0 Add options for separate compile and link sysroots
Add `CMAKE_SYSROOT_COMPILE` and `CMAKE_SYSROOT_LINK` variables to as
operation-specific alternatives to `CMAKE_SYSROOT`.  This will be useful
for Android NDKs that compile and link with different sysroot values
(e.g. `r14` with unified headers).

Co-Author: Florent Castelli <florent.castelli@gmail.com>
2017-05-09 14:21:54 -04:00
Brad King
b69e061b80 Merge topic 'suncc-cxx11'
2731a91c Update SunPro flags used for CMake itself to support C++11
86edc5b6 Choose compiler-specific flags earlier in CMake's own build
7b2d529b cmBase32: Cast pointer subtraction result to size explicitly

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !813
2017-05-09 11:37:35 -04:00
Bernhard Burgermeister
5e0e03d953 Ninja: Fix command concatenation on Windows
Put commands that contain `||` into brackets to avoid early abort of
execution by `cmd.exe` because `||` has higher precedence than `&&` in
`cmd.exe`.

Add test to check for command execution after `||` as part of a
parameter and as command separator.

Fixes: #16850
2017-05-09 11:34:42 -04:00
Brad King
776929b3c4 VS: Fix .vcxproj ProjectGuid element case
The `.vcxproj` file format expects `ProjectGuid`, not `ProjectGUID`.
The latter is expected by `.vcproj` files from VS 2008, so this was
likely a typo when the VS 2010 generator was first introduced.

Fixes: #11968
2017-05-09 10:12:12 -04:00
Kitware Robot
1019789f2a CMake Nightly Date Stamp 2017-05-09 00:01:04 -04:00
Daniel Pfeifer
44c0b2b75a cmCommand: remove IsScriptable 2017-05-08 22:58:01 +02:00
Daniel Pfeifer
da8faa8c7e cmState: remove RemoveUnscriptableCommands 2017-05-08 22:58:01 +02:00
Daniel Pfeifer
c3f41af2be cmMakefile: don't check IsScriptable 2017-05-08 22:58:01 +02:00
Daniel Pfeifer
c2c2bbb3d4 cmake: register fake project commands in -P mode 2017-05-08 22:58:01 +02:00
Daniel Pfeifer
c36d63cd48 cmake: initialize with Role that controls which commands to register 2017-05-08 22:29:44 +02:00
Daniel Pfeifer
8986dec05d ctest: remove unused cmake instance 2017-05-08 22:29:44 +02:00
Brad King
7b2d529bde cmBase32: Cast pointer subtraction result to size explicitly
The SunPro 5.13 compiler with `-std=c++11` complains otherwise.
2017-05-08 10:26:36 -04:00
Brad King
22d0a83a4c Merge topic 'c++11-iwyu'
50dd15af QtDialog: block include-what-you-use
f3e21613 cmServer: include what you use
9535823b IWYU: map system symbols to libuv
6a91ee02 IWYU: add mapping for cm::auto_ptr
7165065f cmInstalledFile: add cmConfigure.h as first #include

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !811
2017-05-08 10:03:15 -04:00
Brad King
830637192d Merge topic 'clazy-cleanup'
422359fe CMakeSetupDialog: use multi-arg
1ffe47e3 QCMakeCacheView: prever QVector over QList
726b3b6f QtDialog: add reference in foreach
377d4df2 QCMakeCacheView: avoid temporary containers for iteration
a57b30bb QtDialog: add missing emit keywords
7a0e2392 cmFileMonitor: use cmDeleteAll

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !805
2017-05-08 09:46:58 -04:00
Kitware Robot
033eafcf44 CMake Nightly Date Stamp 2017-05-08 00:01:05 -04:00
Kitware Robot
41f479467b CMake Nightly Date Stamp 2017-05-07 00:01:03 -04:00
Kitware Robot
17981e0946 CMake Nightly Date Stamp 2017-05-06 00:01:04 -04:00
Daniel Pfeifer
50dd15af58 QtDialog: block include-what-you-use 2017-05-06 00:03:48 +02:00
Daniel Pfeifer
f3e216131b cmServer: include what you use 2017-05-06 00:03:47 +02:00
Daniel Pfeifer
7165065f03 cmInstalledFile: add cmConfigure.h as first #include 2017-05-06 00:03:42 +02:00
Brad King
e1ae739e1f Merge topic 'ctest_submit_headers'
1a7d00bd ctest_submit: Add HTTPHEADER option

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !793
2017-05-05 09:50:58 -04:00
Brad King
b605bdfd03 Merge topic 'vector-over-list'
3e027d9d c++: prefer vectors over lists

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !799
2017-05-05 09:49:41 -04:00
Brad King
053c0f1e44 Merge topic 'clang-tidy-config'
d0c3e47d clang-tidy: add option CMake_RUN_CLANG_TIDY
894ff96c auto_ptr: silence clang-tidy warnings

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !790
2017-05-05 09:47:19 -04:00
Brad King
d90bf11e2f Merge topic 'vs-masm-flags'
ea6bb829 VS: Use tool-specific flag table for COMPILE_FLAGS parsing
da9076e4 VS: Fix MASM flag tables

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !791
2017-05-05 09:45:04 -04:00
Daniel Pfeifer
422359fe79 CMakeSetupDialog: use multi-arg 2017-05-05 09:21:17 +02:00
Daniel Pfeifer
1ffe47e37f QCMakeCacheView: prever QVector over QList 2017-05-05 09:21:16 +02:00
Daniel Pfeifer
726b3b6f75 QtDialog: add reference in foreach 2017-05-05 09:21:13 +02:00
Daniel Pfeifer
377d4df279 QCMakeCacheView: avoid temporary containers for iteration 2017-05-05 09:21:12 +02:00
Daniel Pfeifer
a57b30bb60 QtDialog: add missing emit keywords 2017-05-05 09:21:11 +02:00
Daniel Pfeifer
7a0e239240 cmFileMonitor: use cmDeleteAll 2017-05-05 09:21:10 +02:00
Kitware Robot
0e967e3b1d CMake Nightly Date Stamp 2017-05-05 00:01:05 -04:00
Zack Galbreath
1a7d00bd12 ctest_submit: Add HTTPHEADER option
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.
2017-05-04 12:21:21 -04:00
Daniel Pfeifer
894ff96c06 auto_ptr: silence clang-tidy warnings 2017-05-04 17:39:23 +02:00
Ben Boeckel
3e027d9def c++: prefer vectors over lists
None of these usages of `std::list` were inserting or removing elements
in the middle of the structure, so there were no benefits to using it.

Other uses were related to C pointers being stable in a list of strings
whereas in a vector of strings, small pointer optimizations could be
moved and become invalid after a modification to the hosting vector.
None of these uses modified the vector after handing out a C string to
an external store.
2017-05-04 11:17:49 -04:00