summaryrefslogtreecommitdiffstats
path: root/Source
Commit message (Collapse)AuthorAgeFilesLines
* Merge topic 'ctest_update-memory-problems'Brad King2018-03-282-7/+10
|\ | | | | | | | | | | | | | | 27f033550a ctest_update: Fix crash when handling svn externals 75e8af3354 cmSystemTools: Fix ParseArguments out-of-bounds read Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !1893
| * ctest_update: Fix crash when handling svn externalsBrad King2018-03-271-1/+3
| | | | | | | | | | | | | | | | | | | | | | Refactoring in commit v3.9.0-rc1~156^2 (c++: prefer vectors over lists, 2017-05-04) switched `cmCTestSVN::Repositories` from `std::list` to `std::vector`. This can cause re-allocation when svn externals are processed and break the `RootInfo` pointer that is supposed to point at the first repository element. Switch back to `std::list` so that the address remains stable. Fixes: #17854
| * cmSystemTools: Fix ParseArguments out-of-bounds readBrad King2018-03-271-6/+7
| | | | | | | | | | | | | | When checking for a Windows-style leading path, do not read past the null terminator. Issue: #17854
* | CMake Nightly Date StampKitware Robot2018-03-281-1/+1
| |
* | Merge topic 'cmake_minimum_required-forward-compat'Craig Scott2018-03-272-11/+36
|\ \ | | | | | | | | | | | | | | | | | | 8dc97acb03 cmake_minimum_required: Tolerate unknown future arguments Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !1888
| * | cmake_minimum_required: Tolerate unknown future argumentsBrad King2018-03-262-11/+36
| | | | | | | | | | | | | | | | | | | | | | | | | | | When a `...<max>` version is given that is larger than the running version of CMake, assume that the project is aware of a newer version of CMake and that any unknown arguments are future arguments. This will allow future versions of CMake to add arguments to the command that projects can use without introducing errors in older versions of CMake (back to 3.12).
* | | Merge topic 'const-members'Brad King2018-03-272-34/+34
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | 85468e0754 cmComputeLinkInformation: make some members const Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !1886
| * | | cmComputeLinkInformation: make some members constVitaly Stakhovsky2018-03-222-34/+34
| | | |
* | | | Merge topic 'vs-options-movexml'Brad King2018-03-276-83/+82
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | a0d9429bd7 cmVisualStudioGeneratorOptions: Move XML code to subclasses Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !1885
| * | | | cmVisualStudioGeneratorOptions: Move XML code to subclassesVitaly Stakhovsky2018-03-266-83/+82
| | | | |
* | | | | Merge topic 'revert-CTestTestfile-removal-again'Brad King2018-03-271-7/+4
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 70c50aa23c Revert "Remove CTestTestfile.cmake when BUILD_TESTING is OFF" Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !1887
| * | | | | Revert "Remove CTestTestfile.cmake when BUILD_TESTING is OFF"Brad King2018-03-261-7/+4
| | |_|_|/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Revert commit v3.8.0-rc1~305^2 (Remove CTestTestfile.cmake when BUILD_TESTING is OFF, 2016-11-14) again. We reverted it once in commit v3.8.0-rc3~22^2 (Revert "Remove CTestTestfile.cmake when BUILD_TESTING is OFF", 2017-03-06) but it was accidentally restored by commit v3.11.0-rc1~387^2 (server: add "ctestInfo" request to get test info, 2017-10-25), perhaps due to conflict resolution during rebase. We cannot remove `CTestTestfile.cmake` when testing is off because it breaks projects that never enable testing but create their own `CTestTestfile.cmake` manually instead. Revert the change again and add a test case.
| * | | | CMake 3.11.0-rc4v3.11.0-rc4Brad King2018-03-191-1/+1
| | | | |
| * | | | Merge branch 'genex-COMPILE_LANGUAGE-system-include' into release-3.11Brad King2018-03-138-24/+40
| |\ \ \ \ | | | | | | | | | | | | | | | | | | Merge-request: !1844
| * \ \ \ \ Merge branch 'ccmake-stack-smashing' into release-3.11Brad King2018-03-131-1/+1
| |\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | Merge-request: !1836
* | | | | | | CMake Nightly Date StampKitware Robot2018-03-271-1/+1
| |_|_|_|_|/ |/| | | | |
* | | | | | CMake Nightly Date StampKitware Robot2018-03-261-1/+1
| | | | | |
* | | | | | CMake Nightly Date StampKitware Robot2018-03-251-1/+1
| | | | | |
* | | | | | CMake Nightly Date StampKitware Robot2018-03-241-1/+1
| | | | | |
* | | | | | Merge topic 'pr.find_package.prefixes'Craig Scott2018-03-231-6/+6
|\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 4eb5d851d5 Help: Add 'lib32|libx32|lib64' paths to find_package prefixes Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !1878
| * | | | | | Help: Add 'lib32|libx32|lib64' paths to find_package prefixesRuslan Baratov2018-03-211-6/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Document the conditions when 'lib32|libx32|lib64' variants will be added to the list of possible installation prefixes.
* | | | | | | CMake Nightly Date StampKitware Robot2018-03-231-1/+1
| |_|_|_|_|/ |/| | | | |
* | | | | | Merge topic 'list-sublist'Craig Scott2018-03-222-0/+53
|\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 768225837d list: Add SUBLIST sub-command Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !1874
| * | | | | | list: Add SUBLIST sub-commandMarc Chevrier2018-03-212-0/+53
| |/ / / / / | | | | | | | | | | | | | | | | | | Issue: #17823
* | | | | | Merge topic 'policy-version-range'Craig Scott2018-03-228-42/+122
|\ \ \ \ \ \ | |_|_|_|_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 45408b5ea1 cmake_minimum_required: Optionally set policies with version range 6a41aa2abd cmPolicies: Split parsing and impl of ApplyPolicyVersion 1d00ed7cf7 cmPolicies: Drop unnecessary check from ApplyPolicyVersion 0df559832b cmPolicies: Pass policy version as std::string Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !1864
| * | | | | cmake_minimum_required: Optionally set policies with version rangeBrad King2018-03-218-15/+88
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Teach `cmake_minimum_required` and `cmake_policy(VERSION)` to support a version range of the form `<min>[...<max>]`. Define this to mean that version `<min>` is required, but known policies up to those introduced by `<max>` will be set to `NEW`. This will allow projects to easily specify a range of versions for which they have been updated.
| * | | | | cmPolicies: Split parsing and impl of ApplyPolicyVersionBrad King2018-03-162-19/+30
| | | | | | | | | | | | | | | | | | | | | | | | Also rename local variables to clarify their role during parsing.
| * | | | | cmPolicies: Drop unnecessary check from ApplyPolicyVersionBrad King2018-03-161-9/+3
| | | | | | | | | | | | | | | | | | | | | | | | This internal API is never called with `version_min` empty.
| * | | | | cmPolicies: Pass policy version as std::stringBrad King2018-03-164-8/+10
| | | | | |
* | | | | | Merge topic 'ccmake-revise-default'Brad King2018-03-223-0/+81
|\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 99bf77f49c ccmake: Check for curses more robustly before enabling Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !1881
| * | | | | | ccmake: Check for curses more robustly before enablingBrad King2018-03-213-0/+81
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Compute a default for `BUILD_CursesDialog` by building a small test project that uses curses. Disable `ccmake` by default if it fails, and do not search for Curses as part of the main build. This avoids creating FindCurses cache entries when we are not considering ccmake. If `BUILD_CursesDialog` is enabled (e.g. by the user) then warn if curses cannot be found.
* | | | | | | Merge topic 'vs-flags-improvement'Brad King2018-03-222-72/+65
|\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 5697c6ae03 cmVisualStudioGeneratorOptions: Factor out an OutputFlag helper Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !1862
| * | | | | | | cmVisualStudioGeneratorOptions: Factor out an OutputFlag helperVitaly Stakhovsky2018-03-202-72/+65
| | |/ / / / / | |/| | | | |
* | | | | | | Merge topic 'find-package_root-revise'Brad King2018-03-221-4/+10
|\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 3f479a3ca3 find_package: Improve CMP0074 warning messages Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !1880
| * | | | | | | find_package: Improve CMP0074 warning messagesBrad King2018-03-211-4/+10
| | |_|/ / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Policy `CMP0074` was added by commit eb35d8884b (find_package: Use PackageName_ROOT variables as search prefixes, 2018-03-15). Revise the logic to avoid warning when a `PackageName_ROOT` variable is set to empty since that won't change the search behavior. Also, when we do warn include the variable value(s) for reference.
* | | | | | | CMake Nightly Date StampKitware Robot2018-03-221-1/+1
| |_|/ / / / |/| | | | |
* | | | | | Merge topic 'makefile-fix-depend-optimization'Brad King2018-03-211-3/+8
|\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 8c0f12c4aa Makefile: Restore use of dependency scanning cache Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !1870
| * | | | | | Makefile: Restore use of dependency scanning cachetsecer harry2018-03-201-3/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Since commit v2.8.0~27 (Major optimization of C/C++ dependency scanning, 2009-09-23) our `VaildDeps` cache of `depend.internal` content is supposed to avoid re-scanning dependencies of object files whose dependencies have not changed. However, this was broken by changes to `cmDependsC::WriteDependencies` by commit v3.1.0-rc1~272^2~1 (cmDepends: Refactor object file path conversion, 2014-07-22). The object file path written to `depend.internal` was changed to a relative path, but the lookup in the `ValidDeps` cache of that information was not updated too. Therefore the cache is not used. Fix the object file path used for the `ValidDeps` lookup to restore the original optimization.
* | | | | | | Merge topic 'ccmake-solaris'Brad King2018-03-211-0/+13
|\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 3b7be02480 ccmake: Fix compilation with ncurses on Solaris Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !1876
| * | | | | | | ccmake: Fix compilation with ncurses on SolarisBrad King2018-03-201-0/+13
| | |/ / / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | On Solaris the ncurses header may define an `__attribute__` macro. This breaks C++ headers that use `__attribute__(...)` syntax. Somehow it causes references to unresolved symbols: __gthrw_pthread_once __gthrw_pthread_mutex_lock __gthrw_pthread_mutex_unlock instead of references to the correct symbols: pthread_once pthread_mutex_lock pthread_mutex_unlock Detect this case and undefine the `__attribute__` macro after including the curses headers.
* | | | | | | CMake Nightly Date StampKitware Robot2018-03-211-1/+1
|/ / / / / /
* | | | | | Merge topic 'list-join'Brad King2018-03-202-0/+32
|\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | a58158727b list(): add `JOIN` sub-command Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !1846
| * | | | | | list(): add `JOIN` sub-commandMarc Chevrier2018-03-202-0/+32
| |/ / / / /
* | | | | | Merge topic 'make_GetItems_const'Brad King2018-03-202-2/+2
|\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 8e20ad1a5e cmComputeLinkInformation: make GetItems() const Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !1863
| * | | | | | cmComputeLinkInformation: make GetItems() constMichael Stürmer2018-03-192-2/+2
| | | | | | |
* | | | | | | Merge topic 'vs-indentfix'Brad King2018-03-201-0/+3
|\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | b82ad18fe0 cmVisualStudio10TargetGenerator: fix indentation Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !1868
| * | | | | | | cmVisualStudio10TargetGenerator: fix indentationVitaly Stakhovsky2018-03-191-0/+3
| | |/ / / / / | |/| | | | | | | | | | | | | | | | | | | Added printing empty string to get the right indentation.
* | | | | | | CMake Nightly Date StampKitware Robot2018-03-201-1/+1
|/ / / / / /
* | | | | | Merge topic 'find-package_root-restore'Brad King2018-03-198-44/+79
|\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | eb35d8884b find_package: Use PackageName_ROOT variables as search prefixes Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !1858
| * | | | | | find_package: Use PackageName_ROOT variables as search prefixesBrad King2018-03-168-44/+79
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This feature was originally added by commit v3.9.0-rc1~71^2~2 (find_*: Add a new PackageRoot search path group, 2017-05-03) and documented by commit v3.9.0-rc1~71^2 (find_*: Add docs for PackageRoot search path group, 2017-05-03). However, we had to disable the feature and remove the documentation in commit v3.9.1~2^2 (find_*: Disable the PACKAGE_ROOT search path group for CMake 3.9, 2017-08-08) due to breaking projects that used `PackageName_ROOT` variables themselves. Add policy `CMP0074` to restore the `PackageName_ROOT` variable behavior in a compatible way. Also revise the stack of root paths to store the paths themselves rather than the package names. This way the policy can be considered at the `find_package` call site instead of individual `find_` calls inside a find module. Co-Author: Chuck Atkins <chuck.atkins@kitware.com> Issue: #17144