- 05 Feb, 2018 1 commit
-
-
Kitware Robot authored
-
- 04 Feb, 2018 1 commit
-
-
Kitware Robot authored
-
- 03 Feb, 2018 1 commit
-
-
Kitware Robot authored
-
- 02 Feb, 2018 1 commit
-
-
Kitware Robot authored
-
- 01 Feb, 2018 3 commits
-
-
Brad King authored
In commit v3.4.0-rc1~480^2~3 (cmCustomCommandGenerator: Port to cmOutputConverter, 2015-06-04), cmCustomCommandGenerator's access to the local generator was removed so it needed to construct its own cmOutputConverter instance. Access to the local generator was then restored by commit v3.4.0-rc1~285^2~21 (cmCustomCommandGenerator: Require cmLocalGenerator in API, 2015-07-25), so now we can use its cmOutputConverter base class methods directly.
-
Brad King authored
Remove the `PRE_LINK` and `POST_BUILD` variables. They are not referenced by `WriteDeviceLinkRule`. Remove the `byproducts` local variable from `WriteDeviceLinkStatement` and all the code populating it. We never used the result.
-
Kitware Robot authored
-
- 31 Jan, 2018 9 commits
-
-
Static string comparisons were causing heap allocations just for a comparison.
-
-
In standard libraries, `std::string::find` is usually implemented using vectorized code. Since the Tokenize method iterates character-by-character, doing an initial check using `find` improves performance.
-
Similar to 66076915, the `SetProperty` side is showing up in performance listings due to string comparisons.
-
-
-
Callgrind indicated that `strlen` was being called a lot of times here due to the string comparisons. Since keywords are "sparse" in `add_custom_command`, use a hash comparison to handle keywords and then use strings for comparison since they have a built-in length parameter.
-
Pavel Solodovnikov authored
* Change some functions to take `std::string` instead of `const char*` in the following classes: `cmMakeFile`, `cmake`, `cmCoreTryCompile`, `cmSystemTools`, `cmState`, `cmLocalGenerator` and a few others. * Greatly reduce using of `const char*` overloads for `cmSystemTools::MakeDirectory` and `cmSystemTools::RelativePath`. * Remove many redundant `c_str()` conversions throughout the code.
-
Kitware Robot authored
-
- 30 Jan, 2018 7 commits
-
-
For large number of targets significant amount of time is spent in cmLocalGenerator::FindGeneratorTargetToUse, which uses find_if on a vector to locate the given target. Using a map instead of vector for ImportedGeneratorTargets (as done for cmMakefile::ImportedTargets) provides a significant speedup (up to factor of 2).
-
Frank Winklmeier authored
GetImportedGeneratorTargets is not used anywhere hence remove it to avoid exposing the type of ImportedGeneratorTargets.
-
Robert Maynard authored
The default that CUDA uses causes failures when you try to embed CUDA obj's into another target.
-
Move the `AdditionalIncludeDirectories` tag back to the VS-preferred location in `.vcxproj` files. Fixes: #17691
-
Kitware Robot authored
-
- 29 Jan, 2018 3 commits
-
-
Brad King authored
Move the method implementation up to `cmLocalCommonGenerator` to avoid duplicating it in each generator.
-
Brad King authored
Clang incorrectly warns about a case where we initialize a variable inside a condition in such a way that it will always be initialized before we use it. Simply initialize the variable when defining it to silence the warning.
-
Kitware Robot authored
-
- 28 Jan, 2018 1 commit
-
-
Kitware Robot authored
-
- 27 Jan, 2018 1 commit
-
-
Kitware Robot authored
-
- 26 Jan, 2018 4 commits
-
-
Robert Dailey authored
Previously, code wrote out empty tags for `<DebugInformationFormat>` like so: <DebugInformationFormat></DebugInformationFormat> This gets corrected by Visual Studio 2017 when saving the solution. The correction appears as: <DebugInformationFormat> </DebugInformationFormat> In the spirit of keeping the XML structure as close to what Visual Studio expects as possible, a newline is inserted after the opening tag in the empty case.
-
Kyle Edwards authored
This is to avoid scope issues with CTEST_RUN_CURRENT_SCRIPT. If ctest_start() is called within a function scope, the value of CTEST_RUN_CURRENT_SCRIPT that it sets doesn't make it to the global scope. With this change, ctest_start() no longer sets CTEST_RUN_CURRENT_SCRIPT, and instead sets a field directly in cmCTestScriptHandler. The old behavior of CTEST_RUN_CURRENT_SCRIPT has also been kept for projects and tests that rely on setting it.
-
Pavel Solodovnikov authored
- Use `std::move` while inserting temporary results into vectors. - Change `push_back` to `emplace_back` where appropriate.
-
Kitware Robot authored
-
- 25 Jan, 2018 3 commits
-
-
Brad King authored
This was added separately in `cmCTestMultiProcessHandler` and `cmQtAutoGenerator`. Factor out the duplicate code into a common header for re-use.
-
Brad King authored
-
Kitware Robot authored
-
- 24 Jan, 2018 5 commits
-
-
Brad King authored
When we use a response file for `-I` flags, not all compilers support the `@<file>` syntax. Define `CMAKE_<LANG>_RESPONSE_FILE_FLAG` to specify tool-specific flag, just as we do for linking already via `CMAKE_<LANG>_RESPONSE_FILE_LINK_FLAG`.
-
Tobias Hunger authored
Rename the test* static functions to getOrTest* to better reflect what they do now.
-
Marc Chevrier authored
-
When `cmake.exe` is executed through a symlink, `GetModuleFileNameW` will return location of the link instead of the real path of `cmake.exe`. This results in the following error output: CMake Error: Could not find CMAKE_ROOT !!! CMake has most likely not been installed correctly. Use `cmSystemTools::GetRealPath` in `FindCMakeResources` on Windows to resolve any symlink returned by `GetModuleFileNameW`.
-
If the user request a KDevelop3 project, tell the user that KDevelop3 is not supported anymore, so he sees it's not just a typo. Alex
-