summaryrefslogtreecommitdiff
path: root/Tests
Commit message (Collapse)AuthorAgeFilesLines
* cmake: Display error if generate step failsKyle Edwards2019-05-1328-28/+84
|
* Merge topic 'FindPython-module'Marc Chevrier2019-05-1016-11/+145
|\ | | | | | | | | | | | | | | 30b873c05d FindPython*: Manage weak link for Python modules Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: Ben Boeckel <ben.boeckel@kitware.com> Merge-request: !3291
| * FindPython*: Manage weak link for Python modulesMarc Chevrier2019-05-0716-11/+145
| | | | | | | | | | | | | | Add new target Python::Module which take care of platform requirements for Python module development. Fixes: #18100
* | Merge topic 'FindBoost-fphsa'Brad King2019-05-0847-4/+979
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 634f6ea159 FindBoost: Add new unit tests a22dd5d8be FindBoost: Modernize module mode with FPHSA a315977595 FindBoost: Fix and modernize config mode with FPHSA 24342d5ef7 FindBoost: Add vars Boost_VERSION_MACRO/MAJOR/MINOR/PATCH/COUNT 26634752d0 FindBoost: Introduce new imported target Boost::headers d6c12f374d FindBoost: Compare versions consistently against Boost_VERSION_STRING Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !3243
| * | FindBoost: Add new unit testsDennis Klein2019-05-0744-0/+974
| | |
| * | FindBoost: Modernize module mode with FPHSADennis Klein2019-05-071-1/+2
| | |
| * | FindBoost: Fix and modernize config mode with FPHSADennis Klein2019-05-072-3/+3
| |/ | | | | | | Fixes: #19186
* | Merge topic 'ctest-update-version-override'Craig Scott2019-05-083-5/+25
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | 2a34d0ac36 ctest: Add new variable CTEST_UPDATE_VERSION_OVERRIDE 7ddac95121 Help: cross-ref and wording of docs related to ctest_update() a0d04d8810 testing: Update terminology in ctest_update tests Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: Zack Galbreath <zack.galbreath@kitware.com> Merge-request: !3277
| * | ctest: Add new variable CTEST_UPDATE_VERSION_OVERRIDEZack Galbreath2019-05-072-0/+20
| | | | | | | | | | | | | | | Set this in a CTest script to explicitly define what the current revision will be reported as in Update.xml.
| * | testing: Update terminology in ctest_update testsZack Galbreath2019-05-022-5/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | Use the word "Update" instead of "Test" in ctest_update's RunCMake tests. This change was prompted because I noticed that UpdateChangeId-check.cmake was not actually getting called during the relevant test case. This file also had to be updated since its purpose is to detect an expected XML element (not an attribute).
* | | Merge topic 'enforce-explicit-use-of-project'Brad King2019-05-071-0/+12
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | 1527defbfe cmMakefile: Enforce explicit use of project() command Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !3245
| * | | cmMakefile: Enforce explicit use of project() commandBartosz Kosiorek2019-05-061-0/+12
| | | | | | | | | | | | | | | | Fixes: 17714
* | | | Merge topic 'CTestCoverageCollectGCOV-updates'Brad King2019-05-071-9/+12
|\ \ \ \ | |_|_|/ |/| | | | | | | | | | | | | | | | | | | | | | | 41d262bd3d CTestCoverageCollectGCOV: run gcov with -x 911b97867b CTestCoverageCollectGCOV: run gcov only once Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !3258
| * | | CTestCoverageCollectGCOV: run gcov only onceCristian Morales Vega2019-05-031-9/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Running gcov once per .gcda file is not only inefficient, it also generates wrong data since .gcov files can get overwritten and in general gcov works with less information. fakegcov.cmake needs to be able to handle multiple .gcda files for the test to be meaningful.
* | | | UseSWIG: Manage alternate library nameMarc Chevrier2019-05-032-0/+47
| |/ / |/| | | | | | | | | | | | | | | | | | | | Manage alternate library name by passing -interface <library_name> for python language or -dllimport <library_name> for CSharp language to the SWIG compiler. Fixes: #18771
* | | Merge topic 'std-pipes-always'Brad King2019-05-031-0/+4
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | c85524a94a Ensure stdin, stdout, and stderr pipes are always open Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: Kyle Edwards <kyle.edwards@kitware.com> Merge-request: !3282
| * | | Ensure stdin, stdout, and stderr pipes are always openBrad King2019-05-021-0/+4
| | |/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | On non-Windows platforms libuv assumes that file descriptors 0-2 are always used for standard pipes and never for anything else. Otherwise, libuv may re-use one of these descriptors and then fail an assertion when closing it. Similarly, On Windows platforms our ConsoleBuf implementation assumes that the standard handles are always open. If CMake is run with any standard pipes closed, open them with `/dev/null` or `NUL` to satisfy these assumptions. Fixes: #19219
* | | Merge topic 'jobs-positive-value'Brad King2019-05-039-0/+24
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | 6ad699358b cmake: --build -j <jobs> should not accept 0. Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !3255
| * | | cmake: --build -j <jobs> should not accept 0.Fred Baksik2019-05-019-0/+24
| | |/ | |/| | | | | | | Fixes #19059
* | | Merge topic 'genex-TARGET_FILE_BASE_NAME-manage-postfix'Brad King2019-05-033-5/+71
|\ \ \ | |_|/ |/| | | | | | | | | | | | | | | | | 6e5ccabe9b Genex: Update $<TARGET_FILE_BASE_NAME:...>: take care of POSTFIX 1f4c9aa7d2 Refactor: introduce method cmGeneratorTarget::GetFilePostfix Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !3267
| * | Genex: Update $<TARGET_FILE_BASE_NAME:...>: take care of POSTFIXMarc Chevrier2019-05-023-5/+71
| | | | | | | | | | | | | | | This capability complement MR !3190 and !3207 and is also needed to solve issue #18771.
* | | Merge topic 'fix-swiftmix-test-for-xcode-10.2'Brad King2019-05-024-5/+6
|\ \ \ | |/ / |/| | | | | | | | | | | | | | | | | b7b66919a3 SwiftMix: properly export SwiftMain method cab5471a7b SwiftMix: Get rid of pointer types mismatch warning Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !3279
| * | SwiftMix: properly export SwiftMain methodGregor Jasny2019-05-012-1/+2
| | |
| * | SwiftMix: Get rid of pointer types mismatch warningGregor Jasny2019-05-012-4/+4
| | |
* | | Merge topic 'out-of-dir-linking-private-deps'Brad King2019-05-014-0/+30
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | 3d3713121b target_link_libraries: Fix static library private deps in other dirs Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !3276
| * | | target_link_libraries: Fix static library private deps in other dirsBrad King2019-04-304-0/+30
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In commit a1ad0a699b (target_link_libraries: Allow use with targets in other directories, 2018-09-07, v3.13.0-rc1~94^2) we accidentally broke the logic that adds `$<LINK_ONLY:...>` to private dependencies of static libraries in their `INTERFACE_LINK_LIBRARIES` in the case that the dependency is added from outside the directory creating the library. The check for a valid target name should apply to the original name specified by the caller and not the encoded cross-directory reference. Fixes: #19197
| * | | Merge branch 'backport-autogen-qt-version-from-dirprops' into release-3.13Brad King2019-01-306-1/+72
| |\ \ \ | | | | | | | | | | | | | | | Merge-request: !2883
| | * | | Tests: add cases for providing Qt5Core_VERSION manuallyBen Boeckel2019-01-306-1/+72
| | | | |
| * | | | Merge branch 'backport-restore-install-late-framework' into release-3.13Brad King2019-01-292-0/+7
| |\ \ \ \ | | | | | | | | | | | | | | | | | | Merge-request: !2878
| | * | | | macOS: Restore compatibility for setting FRAMEWORK after install()Brad King2019-01-292-0/+7
| | |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The `FRAMEWORK` target property affects the way the `install()` command treats the target and so should be set first. Our implementation assumed that this was always the case and led to an assertion failure. Prior to CMake 3.12 this was visible only when using an explicit `LIBRARY ... NAMELINK_ONLY` option, but commit 0212d7c762 (install: add NAMELINK_COMPONENT argument, 2018-04-18, v3.12.0-rc1~139^2~3) made it possible with a simple `LIBRARY DESTINATION`. Fully supporting out-of-order specification will require non-trivial refactoring to defer install generator creation to generate time. For now simply restore the old behavior of installing the framework to the library destination. Fixes: #18848
| * | | | cmake: Convert no source/build dir error to warningCraig Scott2019-01-223-3/+15
| |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Temporarily restore previous behavior that allowed specifying no source or build directory to work, even though it was neither documented nor supported. This commit is expected to eventually be reverted to restore the fatal error for such cases. Relates: #18817
| * | | Merge branch 'cmake-option-parsing' into release-3.13Brad King2019-01-143-14/+17
| |\ \ \ | | | | | | | | | | | | | | | Merge-request: !2799
* | \ \ \ Merge topic 'message-new-types-and-logging'Craig Scott2019-04-3016-0/+146
|\ \ \ \ \ | |_|_|/ / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 599587feb1 message(): Minor code modernization 6cc93b370e message(): Add support for log levels 377d1b7896 cmSystemTools: Remove unused message-related code, simplify logic Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: Brad King <brad.king@kitware.com> Merge-request: !3268
| * | | | message(): Add support for log levelsAlex Turbov2019-04-2816-0/+146
| | | | | | | | | | | | | | | | | | | | | | | | | Relates: #18943 Co-Authored-By: Craig Scott <craig.scott@crascit.com>
* | | | | Merge topic 'cmuvstreambuf'Brad King2019-04-303-2/+509
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | c74698cb75 cmUVStreambuf: Add std::streambuf implementation for uv_stream_t 8cfd25db71 cmUVHandlePtr: Add cm::uv_loop_ptr c0e6b22d0a Refactor: Move/rename cmProcessGetPipes() to cmGetPipes() Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !3240
| * | | | | cmUVStreambuf: Add std::streambuf implementation for uv_stream_tKyle Edwards2019-04-252-1/+460
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This will allow std::istream/std::ostream-based interaction with processes spawned by libuv.
| * | | | | cmUVHandlePtr: Add cm::uv_loop_ptrKyle Edwards2019-04-251-1/+49
| |/ / / /
* | | | | Merge topic 'source_group-tree-files'Kyle Edwards2019-04-301-0/+8
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 8d93815d20 source_group command ensures that FILES arguments are actually files Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !3265
| * | | | | source_group command ensures that FILES arguments are actually filesMateusz Janek2019-04-251-0/+8
| |/ / / /
* | | | | Merge topic 'relax_TARGET_OBJECT_generator_expr'Brad King2019-04-3011-15/+124
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ce078dda79 Relax the usage of TARGET_OBJECTS generator expression Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !3178
| * | | | | Relax the usage of TARGET_OBJECTS generator expressionRobert Maynard2019-04-1911-15/+124
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The geneator expression can now be used with static, shared, and module libraries and executables.
* | | | | | Merge topic 'add-execute_process-command-echo'Brad King2019-04-3010-0/+88
|\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 044dcf9f8d execute_process: Add option to echo command lines d350fb6889 execute_process: Manage KWSys Process lifetime with unique_ptr Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !3165
| * | | | | | execute_process: Add option to echo command linesBill Hoffman2019-04-1910-0/+88
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add COMMAND_ECHO option to the execute_process command. This will allow execute_process to show the command it will run. Also add a cmake variable CMAKE_EXECUTE_PROCESS_COMMAND_ECHO. Both the option and the variable can be set to one of the following: STDERR|STDOUT|NONE. The command will be printed to stderr or stdout or not at all. Fixes: #18933
* | | | | | | Merge topic 'msvc-runtime-library'Brad King2019-04-303-1/+22
|\ \ \ \ \ \ \ | |_|_|/ / / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 61f70e81a7 MSVC: Document and test behavior of empty MSVC_RUNTIME_LIBRARY Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !3249
| * | | | | | MSVC: Document and test behavior of empty MSVC_RUNTIME_LIBRARYBrad King2019-04-223-1/+22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Extend tests added by commit fb3370b6a1 (MSVC: Add abstraction for runtime library selection, 2019-04-10) to cover an empty value for the property. It should result in no specific setting. Issue: #19108
* | | | | | | ctest: Include ChangeId in Update.xmlZack Galbreath2019-04-235-0/+50
| |_|_|_|_|/ |/| | | | |
* | | | | | Merge topic 'sunpro-cxx14-features'Brad King2019-04-221-0/+10
|\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 66f3f11af5 SunPro: Record support for C++14 features by SunPro 5.{14,15} Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !3248
| * | | | | | SunPro: Record support for C++14 features by SunPro 5.{14,15}Brad King2019-04-191-0/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | SunPro 5.15 supports `-std=c++14` and several C++14 features. SunPro 5.14 accepts `-std=c++14` but does not update its definition of `__cplusplus` or any other macro to distinguish it from `-std=c++11`, so we need to blacklist a couple features that do work but that we cannot report for that version. We can still support `cxx_std_14`. Co-Author: Robert Maynard <robert.maynard@kitware.com>
* | | | | | | Merge topic 'msvc-warning-flags'Brad King2019-04-227-0/+27
|\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 1baf122cd4 MSVC: Do not add /W3 to CMAKE_<LANG>_FLAGS by default Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !3250
| * | | | | | | MSVC: Do not add /W3 to CMAKE_<LANG>_FLAGS by defaultBrad King2019-04-197-0/+27
| | |/ / / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We do not add default warning flags on other compilers, and having a warning flag in the default flags makes it hard for projects to customize the warning level. They need to use string processing to remove `/W3` from `CMAKE_{C,CXX}_FLAGS`. Therefore we should drop it. However, projects may be using string processing to replace `/W3` with another flag, so we cannot simply drop it. Add a policy to drop it in a compatible way. Fixes: #18317