22121 Commits

Author SHA1 Message Date
Sebastian Holtermann
693d85f8d6 QtAutogen: Rcc related list function rename 2016-12-06 15:59:25 +01:00
Sebastian Holtermann
43747ee8b3 QtAutogen: Rcc related setup function rename 2016-12-06 15:59:24 +01:00
Sebastian Holtermann
8de8d3b191 QtAutogen: Remove and inline ReadAll function
The function was only used once.
2016-12-06 15:59:24 +01:00
Sebastian Holtermann
d0283dc185 QtAutogen: Use shorter name for static function 2016-12-06 15:59:24 +01:00
Sebastian Holtermann
2c9667e897 QtAutogen: Use util prefix for static function name 2016-12-06 15:59:24 +01:00
Brad King
22f05b1d8c Merge topic 'update-kwsys'
7f307d9e Merge branch 'upstream-KWSys' into update-kwsys
1b50bd3f KWSys 2016-12-02 (4967ccc0)
2016-12-06 09:26:17 -05:00
Brad King
f72ba42b7c try_compile: Add policy CMP0067 to honor language standards
Projects use `try_compile` to check if they will be able to compile some
particular source code.  When a language standard variable like
`CMAKE_CXX_STANDARD` is set, then the project intends to compile source
code using a compiler mode for that standard.  Therefore it makes sense
for `try_compile` to use that standard in the test project too.

Unfortunately this was not done when support for the
`CMAKE_CXX_STANDARD` variable was first implemented.  Add a policy to
introduce the improved behavior in a compatible way.

Closes: #16456
2016-12-06 08:58:42 -05:00
Brad King
45aa03b97a try_compile: Add options to specify language standards
Give `try_compile` callers a way to control the `CXX_STANDARD`,
`CXX_STANDARD_REQUIRED`, and `CXX_EXTENSIONS` properties of the
generated test target (or the `C` equivalents) in order to compile a
test source for a particular language standard.

Issue: #16456
2016-12-06 08:58:41 -05:00
Brad King
3bb2051eef try_compile: Stop processing when test build system fails to generate
Failing to generate the build system of the test project is a failure to
compute the result of the test compilation, and so must be treated as
any other CMake Error and stop processing.
2016-12-06 08:58:37 -05:00
Kitware Robot
d6a1e2b90b CMake Nightly Date Stamp 2016-12-06 00:01:08 -05:00
Brad King
41f1125931 Merge topic 'features-c++17'
97c1e569 Help: Add release note for C++ 17 support
85c8e652 Features: Activate C++ 17 support for AppleClang 6.1+
8084f7a6 Features: Activate C++ 17 support for Clang 3.5+
24e29d41 Features: Activate C++ 17 support for GNU 5.1+
ae1a6815 Features: Add infrastructure for C++ 17 language standard
684e4d20 Features: Make feature recording conditions more consistent
2016-12-05 10:56:32 -05:00
Brad King
7f307d9ea6 Merge branch 'upstream-KWSys' into update-kwsys
* upstream-KWSys:
  KWSys 2016-12-02 (4967ccc0)
2016-12-05 09:55:34 -05:00
Brad King
d59010e47f Merge topic 'test-handler-multimap'
1af67b19 cmCTestTestHandler: use multimap
2016-12-05 09:23:33 -05:00
Brad King
f6f42b25c8 Merge topic 'src-COMPILE_FLAGS-genex'
5dec0a23 server-mode: Fix per-source COMPILE_FLAGS genex evaluation
2016-12-05 09:23:22 -05:00
Kitware Robot
a0adef2bed CMake Nightly Date Stamp 2016-12-05 00:01:05 -05:00
Kitware Robot
4660958875 CMake Nightly Date Stamp 2016-12-04 00:01:03 -05:00
Gregor Jasny
0ae4632119 Xcode: Add target property to override explicitFileType 2016-12-04 00:13:51 +01:00
Gregor Jasny
7ecac703ce Xcode: Add target property to override productType 2016-12-04 00:13:08 +01:00
Daniel Pfeifer
1af67b199a cmCTestTestHandler: use multimap 2016-12-03 14:54:52 +01:00
Kitware Robot
c45b767a8c CMake Nightly Date Stamp 2016-12-03 00:01:04 -05:00
Brad King
ae1a6815b6 Features: Add infrastructure for C++ 17 language standard
Issue: #16468
2016-12-02 11:22:46 -05:00
Tobias Hunger
5dec0a2328 server-mode: Fix per-source COMPILE_FLAGS genex evaluation
Logic added by commit 1e4bb358 (Add generator expression support to
per-source COMPILE_FLAGS, 2016-10-25) accidentally frees memory before
finishing with it.  Revise the logic to hold the memory long enough.
2016-12-02 10:15:50 -05:00
Brad King
738a182a90 Merge topic 'cmake-gui-T-help'
dde72ee9 cmake-gui: Clarify help string on toolset selection field
2016-12-02 09:54:37 -05:00
Brad King
46ff507e41 Merge topic 'csharp_compiler_flag_tables'
9b06c226 VS: Add flag tables for C#
2016-12-02 09:54:30 -05:00
Brad King
e9bd298a23 Merge topic 'target_project_type'
66bd8a3c cmVisualStudio10TargetGenerator: Prepare to handle C# projects
2016-12-02 09:54:23 -05:00
Brad King
f7425c2177 Merge topic 'execute_process-encoding'
2ed473b3 execute_process: Add ENCODING option for Windows child process output
2016-12-02 09:54:09 -05:00
Brad King
bd6a269e1a Merge topic 'utf8pipe'
076aef8e Windows: Use UTF-8 for pipes in CMake, CTest and CPack
2016-12-02 09:53:53 -05:00
Kitware Robot
ba946930dd CMake Nightly Date Stamp 2016-12-02 00:01:05 -05:00
Brad King
dde72ee943 cmake-gui: Clarify help string on toolset selection field
The text `-T parameter` may be read as an example value for the field,
but the `-T` part should not be included.  Clarify the wording.

Closes: #16475
2016-12-01 14:27:13 -05:00
Michael Stürmer
9b06c22648 VS: Add flag tables for C#
Add these (currently unused) tables in preparation for `.csproj`
generation support.  Populate the tables for every version with a set of
initial values that work well for me with VS 12 and VS 14.  Later we may
need to generate them more thoroughly from MSBuild `.xml` files.
2016-12-01 16:45:34 +01:00
Michael Stürmer
66bd8a3cf2 cmVisualStudio10TargetGenerator: Prepare to handle C# projects
Generalize some internal infrastructure to prepare for generating
either `.vcxproj` or `.csproj` files.

- Add member string for project file extension
- Add member enum for project type
- Add member flag for in-source build
- Add member flag for managed build
- Rename PathToVcxproj to PathToProjectFile
2016-12-01 10:36:43 -05:00
Brad King
7108d4b73d Merge topic 'compile-pdb-default'
a4da6fa7 Ninja,Makefile: Name static library compile PDB files as VS does
2016-12-01 08:51:00 -05:00
Brad King
5e36feebd4 Merge topic 'vs-Zc-inline'
418afd5b VS: Add v140 flag table entries for `-Zc:inline[-]`
315d44f7 VS: Add v141 flag table entry for `-Zc:inline-`
2016-12-01 08:50:46 -05:00
Brad King
23a63d2024 Merge topic 'cmake-server-pad-arguments'
28e891f0 server-mode: Do not ignore the first cacheArgument on configure
2016-12-01 08:50:41 -05:00
Brad King
75f2a1e459 Merge topic 'VS_DEBUGGER_WORKING_DIRECTORY'
163e8018 VS: Add target property VS_DEBUGGER_WORKING_DIRECTORY
2016-12-01 08:50:30 -05:00
Kitware Robot
7b6f6d9e67 CMake Nightly Date Stamp 2016-12-01 00:01:08 -05:00
Brad King
0d89c1e87c Merge branch 'vs-Zc-inline' into release 2016-11-30 14:30:41 -05:00
Brad King
418afd5b2c VS: Add v140 flag table entries for -Zc:inline[-]
The documentation of this option [1] claims that the default is off, but
VS seems to use `-Zc:inline` by default if `RemoveUnreferencedCodeData`
does not appear in the `.vcxproj` file.  Add the flag table entry to
allow use of the flag to be configured.

[1] https://msdn.microsoft.com/en-us/library/dn642448.aspx

Suggested-by: Serti Ayoub <ayb.serti@gmail.com>
2016-11-30 14:20:15 -05:00
Brad King
315d44f773 VS: Add v141 flag table entry for -Zc:inline-
The negative form of the `-Zc:inline` flag is missing from

    c:/Program Files (x86)/Microsoft Visual Studio/2017/Professional/Common7/IDE/VC/VCTargets/1033/cl.xml

so it was not included in our flag table automatically.  Add it manually.

Suggested-by: Serti Ayoub <ayb.serti@gmail.com>
2016-11-30 14:04:02 -05:00
Tobias Hunger
28e891f0c7 server-mode: Do not ignore the first cacheArgument on configure
SetCacheArgs skips the first argument it gets, so add some padding before
calling it.
2016-11-30 13:14:15 -05:00
Michael Stürmer
163e801809 VS: Add target property VS_DEBUGGER_WORKING_DIRECTORY 2016-11-30 11:45:11 -05:00
Brad King
a4da6fa71d Ninja,Makefile: Name static library compile PDB files as VS does
Change the default compile PDB file name for static libraries to match
the Visual Studio default of using the logical target name.  This may be
incompatible with existing behavior but `COMPILE_PDB_NAME` documents
that the default is unspecified.  Projects depending on a particular
name should set the property.

Closes: #16438
2016-11-30 10:26:31 -05:00
Brad King
db3499df5d CMake 3.7.1 2016-11-30 09:54:05 -05:00
Dāvis Mosāns
2ed473b3b8 execute_process: Add ENCODING option for Windows child process output
Different applications can use different output encodings.
2016-11-30 09:06:51 -05:00
Brad King
29b37dd975 Merge topic 'msbuild-customization'
e3909918 VS: Add option to customize vcxproj user props file
2016-11-30 08:37:37 -05:00
Brad King
2036639b55 Merge topic 'cpack-ifw-options'
88ecfd8b CPackIFW: Add some options
2016-11-30 08:37:30 -05:00
Brad King
32e95a7b24 Merge topic 'end-commands'
67303794 Combine all unexpected commands to a single class
d23a0196 Set the error after argument expansion in end commands
1afbe7d2 Make error message of standalone endwhile command consistent
2016-11-30 08:37:22 -05:00
Brad King
8224545b1d Merge topic 'update-kwsys'
8bced8b1 Merge branch 'upstream-KWSys' into update-kwsys
cd5cff13 KWSys 2016-11-28 (1c7c2139)
2016-11-30 08:37:15 -05:00
Brad King
4288708cba Merge topic 'vs15-rename-generator-for-master'
31e013ae Merge branch 'vs15-rename-generator' into vs15-rename-generator-for-master
d639620e VS: Rename VS 15 generator to 'Visual Studio 15 2017'
2016-11-30 08:37:11 -05:00
Kitware Robot
996e5237ca CMake Nightly Date Stamp 2016-11-30 00:01:04 -05:00