Vitaly Stakhovsky
ff18dce5ed
cmVisualStudio10TargetGenerator: Properly escape attributes
...
In addition to common XML escape characters, attributes require escaping
the double quote character. A new function, cmVS10EscapeAttr is added and
used where appropriate.
2018-04-05 21:20:16 -04:00
jrp2014
acda926a04
Replace some uses of sprintf with std::to_string
2018-04-05 15:34:23 -04:00
jrp2014
418541035f
cmCTestCurl: Fix UploadFile declared parameter names
...
Match the order used in the definition.
2018-04-05 13:42:49 -04:00
jrp2014
1519628e60
cmVisualStudio10TargetGenerator: Make NsightTegraVersion unsigned
...
It's used in unsigned contexts, such as with format strings.
2018-04-05 13:42:49 -04:00
jrp2014
2f87d00803
cmMacroCommand: Fix format string to match type of argument
2018-04-05 13:42:49 -04:00
jrp2014
b0676cc5d4
Add in-class initialization of some members
...
Several class constructors leave members uninitialized. The members are
initialized before use in methods, but it is clearer and less
error-prone to initialize them at their definition site.
2018-04-05 13:42:48 -04:00
jrp2014
966dba5b68
cmAlgorithms: Remove unnecessary typename keyword
2018-04-05 13:42:48 -04:00
Brad King
57c2834da0
Merge topic 'vs10-groups'
...
30bbb4f2ac cmVisualStudio10TargetGenerator: extend DOM-like generation
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !1905
2018-04-05 13:27:39 -04:00
Brad King
d6390ce26e
Ninja: Fix Fortran support with response files
...
The Ninja generator splits preprocessing and compilation steps for
Fortran. Fix this logic to work when using response files for
compilation so that it works for the preprocessing step too.
This fixes behavior under `CMAKE_NINJA_FORCE_RESPONSE_FILE`.
Issue: #17877
2018-04-05 13:02:27 -04:00
Brad King
8592c6326b
cmNinjaTargetGenerator: Move force-rspfile check to earlier
2018-04-05 12:51:21 -04:00
Brad King
e0aa060352
cmNinjaTargetGenerator: Move depfile logic to later in its function
...
Clarify that other compile rule generation logic does not depend on it.
2018-04-05 12:50:57 -04:00
Michael Stürmer
4b7a82b4ed
cmVisualStudio10TargetGenerator: set /clr compiler flag from property
2018-04-05 06:36:53 +02:00
Michael Stürmer
20e31fb4c9
cmExportFileGenerator: add target property for managed targets
2018-04-05 06:36:52 +02:00
Michael Stürmer
411a22706a
cmGeneratorTarget: add handling of managed assemblies to HasImportLibrary()
2018-04-05 06:36:51 +02:00
Michael Stürmer
fb433ff283
cmGeneratorTarget: Make import library checks config-aware
2018-04-05 06:36:49 +02:00
Michael Stürmer
4c1f33961f
cmGeneratorTarget: add GetManagedType() and CheckManagedType() methods
2018-04-05 06:36:48 +02:00
Michael Stürmer
6c517a9f8d
cmGeneratorTarget: add HasLanguage() as wrapper for GetLanguages()
2018-04-05 06:35:01 +02:00
Kitware Robot
aae2bcf8dd
CMake Nightly Date Stamp
2018-04-05 00:01:04 -04:00
jrp2014
0ad329f7c0
Sanitize paths from LINK_DIRECTORIES directory property
...
Normally they are sanitized by the `link_directories` command before
populating the property, but projects may set the property directly.
2018-04-04 14:42:20 -04:00
Brad King
49ea1bb243
Merge topic 'autogen-protect-cmsys-calls'
...
b11e2c80b1 Autogen: Print moc/uic/rcc output to stdout
1d2c9d8c6d Autogen: Use std::istreambuf_iterator for file so string reading
ccc38fa509 Autogen: Protected calls to cmFilePathChecksum
719b24c872 Autogen: Protected calls to cmQtAutoGen::SubDirPrefix
9a73615815 Autogen: Protected calls to cmSystemTools::GetFilenameWithoutLastExtension
65203ce407 Autogen: Protected calls to cmSystemTools::Split/JoinPath
14a86c9ea7 Autogen: Protected calls to cmSystemTools::CollapseCombinedPath
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !1918
2018-04-04 11:21:54 -04:00
Brad King
640bc9def4
Merge topic 'cuda_support_system_libraries_with_device_symbols'
...
41eab150a8 CUDA: Pass more link libraries to device linking
88c7abb740 CUDA: Pass host linker directories to device linker
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !1634
2018-04-04 11:12:52 -04:00
Kitware Robot
c468b9a231
CMake Nightly Date Stamp
2018-04-04 00:01:03 -04:00
Vitaly Stakhovsky
050ddfb3f3
cmXMLWriter: code improvement
...
New Indent member will be used for XML indentation
2018-04-03 17:28:08 -04:00
Sebastian Holtermann
b11e2c80b1
Autogen: Print moc/uic/rcc output to stdout
...
The output of moc/uic/rcc used to be discarded unless
the program failed. This lets moc/uic/rcc print their
output to stdout even on success.
Closes #17860
2018-04-03 17:20:30 +02:00
Sebastian Holtermann
1d2c9d8c6d
Autogen: Use std::istreambuf_iterator for file so string reading
...
This adds a dedicated mutex for file reading and writing to
cmQtAutoGenerator::FileSystem. The purpose of the change is
to avoid that long files reads block cmsys based path computations,
which are protected by an other mutex.
2018-04-03 17:20:30 +02:00
Sebastian Holtermann
ccc38fa509
Autogen: Protected calls to cmFilePathChecksum
...
Closes #17861
Closes #17862
2018-04-03 17:20:30 +02:00
Sebastian Holtermann
719b24c872
Autogen: Protected calls to cmQtAutoGen::SubDirPrefix
2018-04-03 17:20:30 +02:00
Sebastian Holtermann
9a73615815
Autogen: Protected calls to cmSystemTools::GetFilenameWithoutLastExtension
2018-04-03 17:20:30 +02:00
Sebastian Holtermann
65203ce407
Autogen: Protected calls to cmSystemTools::Split/JoinPath
2018-04-03 17:20:30 +02:00
Sebastian Holtermann
14a86c9ea7
Autogen: Protected calls to cmSystemTools::CollapseCombinedPath
2018-04-03 17:20:29 +02:00
Kitware Robot
e3ce4d7a28
CMake Nightly Date Stamp
2018-04-03 00:01:07 -04:00
Brad King
e42fcb117f
Merge topic 'remove-vs8-generator'
...
eb80af9093 Drop Visual Studio 8 2005 generator
e7af91d026 Tests: Remove unused file from Tutorial Step7 test
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !1901
2018-04-02 10:09:15 -04:00
Brad King
eb80af9093
Drop Visual Studio 8 2005 generator
...
This generator has been deprecated since CMake 3.9. Remove it.
2018-04-02 10:08:10 -04:00
Brad King
a76e23eabb
Merge topic 'variable-CMAKE_FOLDER'
...
df535ad846 Add CMAKE_FOLDER variable to initialize FOLDER target property
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !1896
2018-04-02 10:06:39 -04:00
Brad King
8f5b6962c9
Merge topic 'update-kwsys'
...
4c90e94368 Merge branch 'upstream-KWSys' into update-kwsys
b66f18c84f KWSys 2018-03-29 (488f2031)
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !1902
2018-04-02 10:03:12 -04:00
Brad King
1b6ec4b9e3
Merge topic 'features-c++20'
...
8570dc7f64 Help: Update compiler versions in cmake-compile-features.7.rst
874d3d2948 Help: Add release note for C++ 20 support
7f295b1bd3 Features: Activate C++ 20 support for Clang 5.0+
71cb8ce3a1 Features: Activate C++ 20 support for GNU 8.0+
8f146c4508 Features: Activate C++ 20 support for MSVC 19.12.25835+
7fe580a362 Features: Add infrastructure for C++ 20 language standard
1b328e09a3 Features: Use -std=c++17 for C++ 17 on Clang 5.0+
0bc3e5788a Features: Use -std=c++17 for C++ 17 on GNU 8.0+
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !1892
2018-04-02 10:01:23 -04:00
Kitware Robot
a0b5dade9a
CMake Nightly Date Stamp
2018-04-02 00:01:04 -04:00
Shane Parris
3f4b81f540
Add glob verify support to XCode, VS, Ninja, and Makefile generators
2018-04-01 23:16:12 -04:00
Kitware Robot
323d6b4c75
CMake Nightly Date Stamp
2018-04-01 00:01:07 -04:00
Kitware Robot
1d5ad1fdee
CMake Nightly Date Stamp
2018-03-31 00:01:09 -04:00
Vitaly Stakhovsky
30bbb4f2ac
cmVisualStudio10TargetGenerator: extend DOM-like generation
...
The local Elem class is extended with more XML-generating functions.
WriteGroups() is rewritten to use these new functions,
avoiding BuildFileStream.
2018-03-30 22:55:30 -04:00
Kitware Robot
2fc79bcb03
CMake Nightly Date Stamp
2018-03-30 00:01:09 -04:00
Marc B
df535ad846
Add CMAKE_FOLDER variable to initialize FOLDER target property
...
This can be used for example to organize all following targets into one
Visual Studio folder:
set(CMAKE_FOLDER Libraries)
add_subdirectory(libA)
add_subdirectory(libB)
set(CMAKE_FOLDER Executables)
add_subdirectory(progA)
Another possibility is using the current directory name for all
following targets in subdirectories:
get_filename_component(dirname "${CMAKE_CURRENT_SOURCE_DIR}" NAME)
string(APPEND CMAKE_FOLDER "/${dirname}")
2018-03-29 13:19:13 -04:00
Brad King
4c90e94368
Merge branch 'upstream-KWSys' into update-kwsys
...
* upstream-KWSys:
KWSys 2018-03-29 (488f2031)
2018-03-29 11:41:57 -04:00
Shane Parris
ca0befc2e1
Add CONFIGURE_DEPENDS flag support to cmFileCommand::HandleGlobCommand
2018-03-29 10:58:03 -04:00
Shane Parris
599c93e22d
Add cmGlobVerificationManager class, integrate with cmake and cmState
2018-03-29 10:58:03 -04:00
Brad King
894a41fc27
Merge topic 'vs-simplify'
...
80767dd50e VS: Simplify XML code
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !1895
2018-03-29 10:24:06 -04:00
Brad King
3272677e63
Merge topic 'genex-TARGET_NAME_IF_EXISTS'
...
7b173a2933 genex: Add TARGET_NAME_IF_EXISTS expression
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !1890
2018-03-29 10:21:48 -04:00
Brad King
a03105ac8c
Merge topic 'remove-unused-variable'
...
fd6c452986 cmTarget: Remove unused variable
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !1898
2018-03-29 10:17:18 -04:00
Brad King
cdc6dd888e
Merge topic 'gcov-warning-message'
...
ae1cbff07f CTest: The "Could not find gcov." message should not be a warning
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !1894
2018-03-29 10:16:27 -04:00