summaryrefslogtreecommitdiffstats
path: root/Tests
Commit message (Collapse)AuthorAgeFilesLines
* 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
* | | | | | | Merge topic 'vs-default-platform'Brad King2019-04-222-0/+2
|\ \ \ \ \ \ \ | |/ / / / / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | db02be85a0 VS: Provide the default platform name to project code Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !3246
| * | | | | | VS: Provide the default platform name to project codeBrad King2019-04-192-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The value of `CMAKE_VS_PLATFORM_NAME` is computed by Visual Studio generators based on `CMAKE_GENERATOR_PLATFORM` or some default. Prior to the VS 2019 generator, the default was always `Win32`. However, for the `Visual Studio 16 2019` generator, the default is based on the host platform. Store the default in a new `CMAKE_VS_PLATFORM_NAME_DEFAULT` variable for use by project code. This is particularly useful in toolchain files because they are allowed to set `CMAKE_GENERATOR_PLATFORM` and so `CMAKE_VS_PLATFORM_NAME` is not yet known. Of course the toolchain file author knows whether it will set `CMAKE_GENERATOR_PLATFORM`, and if not then `CMAKE_VS_PLATFORM_NAME_DEFAULT` provides the platform name that will be used. Fixes: #19177
* | | | | | | Tests: Fix FindPackageTest when path to source has a symlinkBrad King2019-04-181-8/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Exclude a portion of the test that does not work in this case.
* | | | | | | Tests/FindPackageTest: Tell Git to ignore temporary symlink pathBrad King2019-04-181-0/+1
| |/ / / / / |/| | | | |
* | | | | | Merge topic 'msvc-runtime-library'Brad King2019-04-1722-0/+243
|\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | fb3370b6a1 MSVC: Add abstraction for runtime library selection f621e7fa5d VS: Fix Fortran runtime library flag map special case for '-' options Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: Ben Boeckel <ben.boeckel@kitware.com> Acked-by: Leonid Pospelov <pospelovlm@yandex.ru> Merge-request: !3211
| * | | | | | MSVC: Add abstraction for runtime library selectionBrad King2019-04-1722-0/+243
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Replace our hard-coded defaults for `/MD` and `/MDd` with a first-class abstraction to select the runtime library from an enumeration of logical names. We've long hesitated to do this because the idea of "runtime library selection" touches on related concepts on several platforms. Avoid that scope creep by simply defining an abstraction that applies only when targeting the MSVC ABI on Windows. Removing the old default flags requires a policy because existing projects may rely on string processing to edit them and choose a runtime library under the old behavior. Add policy CMP0091 to provide compatibility. Fixes: #19108
* | | | | | | Merge topic 'vs-project-import'Brad King2019-04-163-0/+40
|\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | d145d72e70 VS: add target property VS_PROJECT_IMPORT_<propspath> Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !3143
| * | | | | | | VS: add target property VS_PROJECT_IMPORT_<propspath>Leonid Pospelov2019-04-153-0/+40
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fixes: #18998
* | | | | | | | Merge topic 'genex-output_name'Brad King2019-04-1633-176/+176
|\ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 60ec292258 Genex: Rename $<TARGET_*_OUTPUT_NAME:...> in $<TARGET_*_FILE_BASE_NAME:...> Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !3228
| * | | | | | | | Genex: Rename $<TARGET_*_OUTPUT_NAME:...> in $<TARGET_*_FILE_BASE_NAME:...>Marc Chevrier2019-04-1533-176/+176
| | | | | | | | |
* | | | | | | | | Merge topic 'string-repeat'Brad King2019-04-168-0/+61
|\ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 536cca60ea string: introduce `REPEAT` sub-command Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !3239
| * | | | | | | | | string: introduce `REPEAT` sub-commandAlex Turbov2019-04-158-0/+61
| | | | | | | | | |
* | | | | | | | | | Merge topic 'autogen_moc_uic_single_job_queue'Brad King2019-04-168-0/+131
|\ \ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 58f04b6ecf Autogen: Add ManySources test a3f062091f Autogen: Rename `cmQtAutoGeneratorMocUic` class to `cmQtAutoMocUic` 8cb26a0a2a Autogen: Factor out concurrency framework to cmWorkerPool class Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !3224
| * | | | | | | | | | Autogen: Add ManySources testSebastian Holtermann2019-04-158-0/+131
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The QtAutogen/ManySources test generates a number of source, header, .ui and .qrc files that get AUTOMOC, AUTOUIC and AUTORCC processed. This stresses the concurrency framework in `cmQtAutoMocUic` and should reveal any issues with that.