summaryrefslogtreecommitdiffstats
path: root/Tests
Commit message (Collapse)AuthorAgeFilesLines
* Merge topic 'vs_deploy_content_fix'Brad King2018-12-133-0/+95
|\ | | | | | | | | | | | | b5b63da088 VS: Fix Deploy content in .csproj files Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !2713
| * VS: Fix Deploy content in .csproj filesWil Stark2018-12-073-0/+95
| |
* | Merge topic 'custom-string'Brad King2018-12-132-0/+1348
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2d68b2c593 String: Add str_if_stable() as a const alternative to str() a0841b59bd String: Add support for a ""_s string literal syntax 9d5fe8e96a String: Add 'borrow' member to construct borrowing instances 80802a002c String: Add support for concatenation by operator+ ff69763ca0 String: Add a custom string type 410a3e4b22 Add support for using C++17 string_view or a fallback Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: Daniel Pfeifer <daniel@pfeifer-mail.de> Acked-by: Pavel Solodovnikov <hellyeahdominate@gmail.com> Merge-request: !2578
| * | String: Add str_if_stable() as a const alternative to str()Brad King2018-12-121-0/+59
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The `str()` method must be non-const because it may need to internally mutate the representation of the string in order to have an owned `std::string` instance holding the exact string (not a superstring). This is inconvenient in contexts where we can ensure that no mutation is needed to get a `std::string const&`. Add a `str_if_stable() const` method that returns `std::string const*` so we can return `nullptr` if if mutation would be necessary to get a `std::string const&`. Add supporting `is_stable() const` and `stabilize()` methods to check and enforce stable availability of `std::string const&`. These can be used to create `String const` instances from which we can still get a `std::string const&` via `*str_if_stable()` by maintaining the stability invariant at runtime.
| * | String: Add support for a ""_s string literal syntaxBrad King2018-12-121-2/+47
| | | | | | | | | | | | | | | Create a `static_string_view` type that binds only to the static storage of string literals. Teach `cm::String` to borrow from these implicitly.
| * | String: Add 'borrow' member to construct borrowing instancesBrad King2018-12-121-0/+32
| | | | | | | | | | | | | | | | | | This will allow creation of `cm::String` instances that borrow from non-owned storage. It is the caller's responsibility to ensure that no copy of the instance outlives the borrowed buffer.
| * | String: Add support for concatenation by operator+Brad King2018-12-121-0/+101
| | | | | | | | | | | | | | | | | | Use expression templates to collect the entire expression and pre-allocate a string with the final length before concatenating the pieces.
| * | String: Add a custom string typeBrad King2018-12-122-0/+1111
| |/ | | | | | | | | | | | | | | | | | | | | | | | | | | Create a `cm::String` type that holds a view of a string buffer and optionally shares ownership of the buffer. Instances can either borrow longer-lived storage (e.g. static storage of string literals) or internally own a `std::string` instance. In the latter case, share ownership with copies and substrings. Allocate a new internal string only on operations that require mutation. This will allow us to recover string sharing semantics that we used to get from C++98 std::string copy-on-write implementations. Such implementations are not allowed by C++11 so code our own in a custom string type instead.
* | Merge topic 'fileapi'Brad King2018-12-1377-0/+6475
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | b9c6f08276 Help: Add release note for fileapi feature 4b6b2a571c fileapi: extend codemodel v2 with directory details eb8c7676a4 fileapi: extend codemodel v2 with a project model 42f0125ceb fileapi: Add test for cmakeFiles v1 6615408193 fileapi: add cmakeFiles v1 3f6ee75a66 fileapi: Add test for cache v2 7489e95b8e fileapi: add cache v2 ea0a060168 fileapi: Add test for codemodel v2 ... Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !2706
| * | fileapi: extend codemodel v2 with directory detailsBrad King2018-12-121-0/+26
| | | | | | | | | | | | | | | Issue: #18398 Co-Author: Kyle Edwards <kyle.edwards@kitware.com>
| * | fileapi: extend codemodel v2 with a project modelBrad King2018-12-122-3/+259
| | | | | | | | | | | | | | | | | | | | | | | | | | | Offer clients a `project()`-centric view of the build system. This is similar to the directory-centric view but consolidates subdirectories that do not call `project()` with a new project name. Issue: #18398 Co-Author: Kyle Edwards <kyle.edwards@kitware.com>
| * | fileapi: Add test for cmakeFiles v1Kyle Edwards2018-12-126-1/+89
| | |
| * | fileapi: add cmakeFiles v1Brad King2018-12-129-0/+56
| | | | | | | | | | | | Issue: #18398
| * | fileapi: Add test for cache v2Kyle Edwards2018-12-122-2/+134
| | |
| * | fileapi: add cache v2Brad King2018-12-129-0/+57
| | | | | | | | | | | | | | | | | | Start with v2 to distinguish it from server-mode v1. Issue: #18398
| * | fileapi: Add test for codemodel v2Kyle Edwards2018-12-1215-14/+4927
| | |
| * | fileapi: add codemodel v2Brad King2018-12-129-0/+67
| | | | | | | | | | | | | | | | | | Start with v2 to distinguish it from server-mode v1. Issue: #18398
| * | fileapi: Add more infrastructure to FileAPI testKyle Edwards2018-12-121-7/+65
| | |
| * | fileapi: Report cmake generator in reply index fileBrad King2018-12-121-1/+12
| | |
| * | fileapi: Add protocol v1 support for stateful per-client queriesBrad King2018-12-126-0/+406
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add support for client-owned *stateful* query files. These allow clients to request a list of versions of each object kind and get only the first-listed version that CMake recognizes. Since clients own their stateful query files they can mutate them over time. As a client installation is updated it may update the queries that it writes to build trees to get newer object versions without paying the cost of continuing to generate older versions. Issue: #18398
| * | fileapi: Add protocol v1 support for client-specific query filesBrad King2018-12-1217-0/+191
| | | | | | | | | | | | | | | | | | | | | | | | Add support for client-owned stateless query files. These allow clients to *own* requests for major object versions and get all those recognized by CMake. Issue: #18398
| * | fileapi: Add protocol v1 infrastructure with support for shared query filesBrad King2018-12-1218-0/+209
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add a file-based API that clients may use to get semantic information about the buildsystem that CMake generates. Clients will write query files under a designated location in the build tree, and CMake will write reply files for clients to read. Start with support for shared stateless query files. These allow clients to share requests for major object versions and get all those recognized by CMake. Once any client has written a shared request to a build tree it will persist. Other clients will not need to overwrite the request (since it is stateless) and should not remove it either. For now we add only an undocumented object kind to use for testing the query and reply infrastructure. Object kinds providing real semantic information will be added later. Issue: #18398
| * | Tests: Add RunCMake "prep" stepBrad King2018-12-111-0/+5
| | | | | | | | | | | | | | | Give tests a chance to write content to the build tree before CMake runs on it.
* | | Merge topic 'object-library-link'Brad King2018-12-123-0/+14
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | bab24e782c target_link_libraries: Propagate dependencies of object libraries Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !2725
| * | | target_link_libraries: Propagate dependencies of object librariesKyle Edwards2018-12-103-0/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Prior to this commit, linking against an object library did not propagate private link dependencies of object libraries to their consuming targets. This change implements the correct behavior. Fixes: #18692 Co-Author: Brad King <brad.king@kitware.com>
* | | | Merge topic 'fix-configure-line-number'Brad King2018-12-122-1/+26
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | fe9a16c80f cmMakefile: Fix @CMAKE_CURRENT_LIST_LINE@ for ExpandVariablesInStringNew dda4755b46 cmMakefile: Fix ConfigureString not passing filename and line Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !2675
| * | | | cmMakefile: Fix @CMAKE_CURRENT_LIST_LINE@ for ExpandVariablesInStringNewArtur Ryt2018-12-122-1/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Added check for variable name in @@ evaluation and test for configuring @CMAKE_CURRENT_LIST_LINE@ with new CMP0053 Fixes: #18646
| * | | | cmMakefile: Fix ConfigureString not passing filename and lineArtur Ryt2018-12-122-1/+23
| | |/ / | |/| | | | | | | | | | | | | | | | | | It enables to use CMAKE_CURRENT_LIST_LINE in string(CONFIGURE) Added tests for it for ${} and @@ notattion for old CMP0053 and ${} for new
* | | | Merge topic 'FindThreads-drop-irix'Brad King2018-12-122-2/+0
|\ \ \ \ | |_|/ / |/| | | | | | | | | | | | | | | | | | | 83dab0c123 FindThreads: Drop IRIX-specific options and results Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !2717
| * | | FindThreads: Drop IRIX-specific options and resultsBrad King2018-12-072-2/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We do not need to support IRIX anymore, so drop relevant parts. In particular, the `CMAKE_THREAD_PREFER_PTHREAD` is frequently confused with `THREADS_PREFER_PTHREAD_FLAG`. Also remove references to the IRIX-specific options and results from other modules and tests.
* | | | Merge topic 'SWIG'Brad King2018-12-1015-3/+175
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | dff28141dc UseSWIG: add management of SWIG option -module 7b3d4799f8 Help: update policy 0078 documentation Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !2669
| * | | | UseSWIG: add management of SWIG option -moduleMarc Chevrier2018-12-0715-3/+175
| | |_|/ | |/| | | | | | | | | | | | | | | | | | | | | | When file property SWIG_MODULE_NAME is specified, provide option -module to SWIG compiler. Fixes: #18374
* | | | Merge topic 'file-read_symlink'Brad King2018-12-1010-3/+37
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 31840e363f file: Fix formatting of error in SIZE sub-command 98a39be6cf file: Add READ_SYMLINK sub-command Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !2705
| * | | | file: Fix formatting of error in SIZE sub-commandKyle Edwards2018-12-062-3/+4
| | | | |
| * | | | file: Add READ_SYMLINK sub-commandKyle Edwards2018-12-068-0/+33
| |/ / /
* | | | Merge topic 'cpack-status-callback'Brad King2018-12-102-0/+3
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 4a3ae1710e CPack/External: Fix status messages of staging scripts Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !2696
| * | | | CPack/External: Fix status messages of staging scriptsNils Gladitz2018-12-072-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Set progress callback on cmake instance used by CPack. The progress callback is used to output STATUS messages which are otherwise missing when issued from e.g. CPack External staging scripts. Fixes: #18567
* | | | | Merge topic 'autogen_revert_implicit_includes'Brad King2018-12-101-1/+2
|\ \ \ \ \ | |_|_|/ / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | e5a4007a3b Merge branch 'backport-autogen_revert_implicit_includes' 4be7f38d57 Autogen: Revert passing compiler implicit includes to moc 187481d4d9 Autogen: Revert passing compiler implicit includes to moc Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !2709
| * | | | Autogen: Revert passing compiler implicit includes to mocSebastian Holtermann2018-12-071-1/+2
| | |/ / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Passing an incomplete list of compiler include directories causes a regression in the KIO project (and probably others). We need to disable it until the complete list is available (see #16291). Fixes: #18669 Issue: #18041
* | | | Merge topic 'gnu-octave'Brad King2018-12-075-0/+53
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 170bcb6fdc FindOctave: Add module to find GNU octave Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !2630
| * | | | FindOctave: Add module to find GNU octaveMichael Hirsch, Ph.D2018-12-065-0/+53
| |/ / /
* | | | Merge topic 'submit-method'Brad King2018-12-0734-63/+0
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 9501a6145d CTest: Remove special case for Dart version <= 1 e184603378 CTest: Add release note about removed submission methods 8c25aa2feb CTest: Remove submission trigger a688c6b928 CTest: Remove submit method 'ftp' c339b64cf2 CTest: Remove submit method 'scp' aebdad399e CTest: Remove submit method 'cp' c2f6872c4e CTest: Remove submit method 'xmlrpc' Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !2672
| * | | | CTest: Remove special case for Dart version <= 1Regina Pfeifer2018-11-2821-42/+0
| | | | |
| * | | | CTest: Remove submit method 'ftp'Regina Pfeifer2018-11-284-7/+0
| | | | |
| * | | | CTest: Remove submit method 'scp'Regina Pfeifer2018-11-284-4/+0
| | | | |
| * | | | CTest: Remove submit method 'cp'Regina Pfeifer2018-11-284-6/+0
| | | | |
| * | | | CTest: Remove submit method 'xmlrpc'Regina Pfeifer2018-11-284-4/+0
| | |_|/ | |/| |
* | | | FindCURL: add test for componentHiroshi Miura2018-12-061-1/+1
| |/ / |/| | | | | | | | Signed-off-by: Hiroshi Miura <miurahr@linux.com>
* | | Merge topic 'try-compile'Brad King2018-12-069-1/+121
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | f266182aec Check* functions family: add support for LINK_OPTIONS 29f9db5c63 try_compile/try_run: Add support for LINK_OPTIONS option. Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !2661
| * | | try_compile/try_run: Add support for LINK_OPTIONS option.Marc Chevrier2018-12-019-1/+121
| |/ /