summaryrefslogtreecommitdiffstats
path: root/Source
Commit message (Collapse)AuthorAgeFilesLines
* Merge topic 'evaluate-stdstring'Craig Scott2018-08-138-40/+41
|\ | | | | | | | | | | | | c530e2f74f cmCompiledGeneratorExpression::Evaluate(): return const std::string& Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !2279
| * cmCompiledGeneratorExpression::Evaluate(): return const std::string&Vitaly Stakhovsky2018-08-098-40/+41
| |
* | Merge topic 'state-directory-stdstring'Craig Scott2018-08-136-21/+23
|\ \ | | | | | | | | | | | | | | | | | | ada121e573 cmStateDirectory: use const std::string& for return values Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !2277
| * | cmStateDirectory: use const std::string& for return valuesVitaly Stakhovsky2018-08-126-21/+23
| | |
* | | CMake Nightly Date StampKitware Robot2018-08-131-1/+1
| | |
* | | CMake Nightly Date StampKitware Robot2018-08-121-1/+1
| | |
* | | CMake Nightly Date StampKitware Robot2018-08-111-1/+1
|/ /
* | Merge topic 'msvc-link-non-english'Brad King2018-08-101-0/+12
|\ \ | | | | | | | | | | | | | | | | | | | | | 7e359823c9 MSVC: Preserve linker output encoding b7e7718a38 MSVC: Fix manifest resource encoding Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !2261
| * | MSVC: Preserve linker output encodingJustin Goshi2018-08-091-0/+10
| | | | | | | | | | | | | | | | | | | | | When using the Ninja or Makefile generator with MSVC on Windows we invoke the linker through a `cmake -E vs_link_{exe,dll}` wrapper. Preserve the linker output encoding to match `link.exe` behavior instead of forcing UTF-8.
| * | MSVC: Fix manifest resource encodingJustin Goshi2018-08-091-0/+2
| | | | | | | | | | | | | | | | | | | | | When using the Ninja or Makefile generator with MSVC on Windows we invoke the resource compiler (`rc.exe`) to compile a manifest resource. CMake generates the file with UTF-8 encoding so we need to add a pragma to inform the resource compiler.
* | | CMake Nightly Date StampKitware Robot2018-08-101-1/+1
| |/ |/|
* | Merge topic 'cleanup-find-cstr'Brad King2018-08-0919-43/+42
|\ \ | | | | | | | | | | | | | | | | | | 69ca85cc7f Remove unnecessary c_str() in RegularExpression::find calls Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !2271
| * | Remove unnecessary c_str() in RegularExpression::find callsVitaly Stakhovsky2018-08-0719-43/+42
| | |
* | | Merge topic 'cmGeneratedFileStream_string'Brad King2018-08-0938-111/+106
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | b6802cd506 cmGeneratedFileStream: clang-tidy applied to remove redundant ``c_str`` calls a688defcc6 cmGeneratedFileStream: Use ``std::string const&`` instead of ``const char*`` Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !2266
| * | | cmGeneratedFileStream: clang-tidy applied to remove redundant ``c_str`` callsSebastian Holtermann2018-08-0737-93/+87
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | After changing the ``cmGeneratedFileStream`` methods to accept ``std::string const&`` instead of ``const char*`` we don't need to call ``std::string::c_str`` anymore when passing a ``std::string`` to a ``cmGeneratedFileStream`` method. This patch removes all redundant ``std::string::c_str`` calls when passing a string to a ``cmGeneratedFileStream`` method. It was generated by building CMake with clang-tidy enabled using the following options: -DCMAKE_CXX_CLANG_TIDY=/usr/bin/clang-tidy-4.0;-checks=-*,readability-redundant-string-cstr;-fix;-fix-errors
| * | | cmGeneratedFileStream: Use ``std::string const&`` instead of ``const char*``Sebastian Holtermann2018-08-072-18/+19
| |/ /
* | | Merge topic 'update-kwsys'Brad King2018-08-091-3/+21
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | ba872ea9c3 Merge branch 'upstream-KWSys' into update-kwsys 4d76239a51 KWSys 2018-08-07 (9044518f) Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !2268
| * | | Merge branch 'upstream-KWSys' into update-kwsysBrad King2018-08-071-3/+21
| | | | | | | | | | | | | | | | | | | | * upstream-KWSys: KWSys 2018-08-07 (9044518f)
* | | | Merge topic 'iwyu-std-hash'Brad King2018-08-092-4/+2
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | aefb8559dc IWYU: Fix workaround mapping for std::hash Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !2267
| * | | | IWYU: Fix workaround mapping for std::hashBrad King2018-08-072-4/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | It is provided by `functional`, not `utility`. Fix the mapping added by commit 276d3c7afe (IWYU: Add workaround mapping for std::hash, 2018-07-31). Also generalize the workaround from commit v3.12.0-rc1~39^2~1 (IWYU: Define a macro to tell code it is preprocessing for iwyu, 2018-05-25) to allow local builds to configure specific flags. This is needed because iwyu behaves differently in different environments.
* | | | | CMake Nightly Date StampKitware Robot2018-08-091-1/+1
| | | | |
* | | | | CMake Nightly Date StampKitware Robot2018-08-081-1/+1
| |_|/ / |/| | |
* | | | Merge topic 'productbuild-merge-output'Craig Scott2018-08-071-2/+2
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 496d22b8cc productbuild: Capture stderr too in CPackProductBuild logs Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !2257
| * | | | productbuild: Capture stderr too in CPackProductBuild logsMuhammad Ismail Soboute2018-08-061-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | Stdout and stderr will be merged. Fixes: #18234
* | | | | CMake Nightly Date StampKitware Robot2018-08-071-1/+1
| |_|/ / |/| | |
* | | | Merge topic 'autogen_single_entry'Brad King2018-08-062-28/+28
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 87e7904c91 Autogen: Use a single AUTOGEN setup function in cmGlobalGenerator Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !2260
| * | | | Autogen: Use a single AUTOGEN setup function in cmGlobalGeneratorSebastian Holtermann2018-08-032-28/+28
| | |_|/ | |/| | | | | | | | | | | | | | | | | | By moving all AUTOGEN setup code in ``cmGlobalGenerator`` into a single ``cmGlobalGenerator::QtAutoGen`` function, the ``cmGlobalGenerator::Compute`` function becomes cleaner.
* | | | Merge topic 'xcode_schemes_config'Brad King2018-08-065-0/+206
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 6b7f1e1db0 Xcode: Add variables and properties to configure schemes 39c91d0703 cmGlobalGenerator: Add IsXcode query Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !1803
| * | | | Xcode: Add variables and properties to configure schemesGregor Jasny2018-08-013-0/+202
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add `XCODE_SCHEME_*` target properties and associated variables `CMAKE_XCODE_SCHEME_*` to initialize them on target creation. Map each target property value to an associated Xcode scheme entry. Co-Author: Martin Sander <mail@martin-sander.de> Fixes: #17919
| * | | | cmGlobalGenerator: Add IsXcode queryBrad King2018-08-012-0/+4
| | |/ / | |/| | | | | | | | | | Make it easy to detect use of the Xcode generator.
* | | | Merge topic 'check-unique_ptr-pgi'Brad King2018-08-064-4/+9
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 3a2c736b41 Extend C++17/C++14 feature checks to require unique_ptr Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !2252
| * | | | Extend C++17/C++14 feature checks to require unique_ptrBrad King2018-08-014-4/+9
| |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | When testing compiler modes higher than C++11 for constructs we need, include a check for using `unique_ptr` in that mode. The PGI 18.4 compiler in some environments supports `unique_ptr` in C++11 mode but is broken for C++14 and C++17. Check that `unique_ptr` works in these modes before using one.
* | | | Merge topic 'file-WRITE-chmod'Brad King2018-08-062-10/+18
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | bdd0174df1 file(WRITE): Avoid toggling permissions between 644 and 664 Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !2246
| * | | | file(WRITE): Avoid toggling permissions between 644 and 664David Faure2018-08-012-10/+18
| |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | On systems with umask 022, this function would set permissions to 664 and restore them to 644 at the end, every single time it was called (which is many times on e.g. install_manifest.txt). The intent of the code was to make non-writable files temporarily writable and to restore permissions in the end, but really, if it's already user-writable there's no point in toggling this back and forth.
* | | | CMake Nightly Date StampKitware Robot2018-08-061-1/+1
| | | |
* | | | CMake Nightly Date StampKitware Robot2018-08-051-1/+1
| | | |
* | | | CMake Nightly Date StampKitware Robot2018-08-041-1/+1
| |/ / |/| |
* | | CMake Nightly Date StampKitware Robot2018-08-031-1/+1
| | |
* | | CMake Nightly Date StampKitware Robot2018-08-021-1/+1
|/ /
* | Merge topic 'gcc-8-warnings'Brad King2018-08-0114-885/+910
|\ \ | |/ | | | | | | | | | | | | | | | | | | | | 276d3c7afe IWYU: Add workaround mapping for std::hash 72f57845d3 cmXMLParser: Avoid -Wconversion warning 34257b0dd4 LexerParser: Suppress GCC -Wconversion warnings cfa6b14f9c cmGlobalGenerator: Avoid -Wstringop-truncation warning 9df0e1f98a cmCommandArgumentParserHelper: Avoid -Wstringop-truncation warning b6d116e240 cmCursesLongMessageForm: Avoid -Wstringop-overflow warning Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !2244
| * IWYU: Add workaround mapping for std::hashBrad King2018-07-311-0/+1
| | | | | | | | | | When using GCC 8's standard library IWYU thinks that `<system_error>` must be included to get `std::hash`. Add a mapping for `<utility>`.
| * cmXMLParser: Avoid -Wconversion warningBrad King2018-07-311-2/+2
| | | | | | | | | | Add an explicit cast since we expect the conversion to be well within range.
| * LexerParser: Suppress GCC -Wconversion warningsBrad King2018-07-319-880/+904
| | | | | | | | | | GCC 8 warns about some of the conversions in bison-generated code. Suppress the warnings.
| * cmGlobalGenerator: Avoid -Wstringop-truncation warningBrad King2018-07-311-1/+1
| | | | | | | | | | Use `memcpy` instead of `strncpy` to copy bytes into a buffer that is not intended to be null terminated.
| * cmCommandArgumentParserHelper: Avoid -Wstringop-truncation warningBrad King2018-07-311-1/+1
| | | | | | | | | | Use `memcpy` instead of `strncpy` to copy bytes from a buffer that may not be null terminated.
| * cmCursesLongMessageForm: Avoid -Wstringop-overflow warningBrad King2018-07-311-1/+1
| | | | | | | | | | | | | | | | We use `strncpy` to copy the title up to a maximum number of characters. GCC 8's `-Wstringop-overflow` warns that the length depends on the input length because it fails to recognize that we are bounding it to the buffer size too. Update the code to hide the dependence on the input length.
* | CMake Nightly Date StampKitware Robot2018-08-011-1/+1
|/
* Merge topic 'autogen_refactor_initialization'Brad King2018-07-315-704/+775
|\ | | | | | | | | | | | | | | | | | | | | | | | | 7bb70054e4 Autogen: Add test for Q_OS_ macros f345135845 Autogen: For Qt5 pass all implicit include directories to moc 2d6cfe2677 Autogen: Split initializer main method 84bdae8895 Autogen: Compute variables in Init stage instead of Setup stage 8e0d70272d Autogen: Move info file write code into methods 5776639fbf Autogen: Pass absolute include path in info file 2e9199b291 cmLocalGenerator: Respect user requested implicit include directories order Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !2230
| * Autogen: For Qt5 pass all implicit include directories to mocSebastian Holtermann2018-07-301-3/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | For Qt4 it was not possible to pass all compiler implicit include directories to moc because it couldn't handle some system headers. For reference see commit 753b905ec86ffe369d4f59a7a8ced5fedc42939f, commit d2536579d51e77827b8e55f39123316324314781 and [QTBUG-28045](https://bugreports.qt.io/browse/QTBUG-28045). For Qt5's moc the problem does not persist anymore so we can (and should) pass all implicit include directories to moc. Fixes #18041
| * Autogen: Split initializer main methodSebastian Holtermann2018-07-302-547/+578
| |