summaryrefslogtreecommitdiffstats
path: root/Tests
Commit message (Collapse)AuthorAgeFilesLines
* objlib: Allow `OBJECT` libraries to link to other libraries.Deniz Bahadir2018-03-019-12/+39
| | | | | | | | | | The proper way to use libraries is now through `target_link_libraries` for things such as usage requirements, compile definitions, include directories, etc. To facilitate this, allow `OBJECT` libraries to "link" to other libraries. Co-Author: Ben Boeckel <ben.boeckel@kitware.com> Issue: #14778
* Tests: Teach RunCMake to ignore AIX ld warnings about GNU atexitBrad King2018-03-011-0/+2
|
* Merge topic 'object-library-export-as-interface'Brad King2018-03-018-17/+34
|\ | | | | | | | | | | | | ea0ce73a19 install,export: Maybe transform OBJECT libraries to INTERFACE libraries Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !1811
| * install,export: Maybe transform OBJECT libraries to INTERFACE librariesBrad King2018-02-288-17/+34
| | | | | | | | | | | | | | | | | | | | | | Teach the `install` and `export` commands to support installing and exporting `OBJECT` libraries without their object files. Transform them to `INTERFACE` libraries in such cases. For `install(TARGETS)`, activate this when no destination for the object files is specified. For `export`, activate this only under Xcode with multiple architectures when we have no well-defined object file locations to give to clients.
* | Merge topic 'contract-plplot'Brad King2018-02-271-1/+1
|\ \ | | | | | | | | | | | | | | | | | | 4964fe1e Tests: Update PLplot contract test repository URL Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !1801
| * | Tests: Update PLplot contract test repository URLBrad King2018-02-261-1/+1
| | | | | | | | | | | | | | | | | | Use a `git://` protocol URL documented by the repository hosting infrastructure. After some updates to that infrastructure, the `https://` URL with the `.git` extension no longer works reliably.
* | | Merge topic 'unixtimefix'Brad King2018-02-272-4/+4
|\ \ \ | |/ / |/| | | | | | | | | | | | | | e1cd936c Tests: Fix TIMESTAMP-UnixTime test under SOURCE_DATE_EPOCH=1 Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !1800
| * | Tests: Fix TIMESTAMP-UnixTime test under SOURCE_DATE_EPOCH=1Bernhard M. Wiedemann2018-02-262-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | The test was expecting timestamps on day 1 in 1970 to start at 86400 but they actually started at 0. This worked without `SOURCE_DATE_EPOCH=1` because after 1972, leap days compensated the offset. Fixes: #17762
* | | VS: Support C# project referencesRobert Dailey2018-02-237-0/+80
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When specifying a pure C# target in the `target_link_libraries()` call to another C++ target, a `<ProjectReference>` was setup for it (we wanted this) but also a corresponding `.lib` was added under `<AdditionalDependencies>` (we didn't want this). This change introduces a check that prevents `.lib` linker options from being used when the corresponding target for that library is a C# target. Fixes: #17678
* | | Merge topic '14297-partial-xcode-zero-check'Brad King2018-02-234-0/+21
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | 481420ee Xcode: Generate ZERO_CHECK generator target only once Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !1790
| * | | Xcode: Generate ZERO_CHECK generator target only onceGregor Jasny2018-02-224-0/+21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In case CMAKE_XCODE_GENERATE_TOP_LEVEL_PROJECT_ONLY has been enabled generate only the root-level ZERO_CHECK target so targets in subdirectories pick up the root generator target of ZERO_CHECK. For the case that CMAKE_XCODE_GENERATE_TOP_LEVEL_PROJECT_ONLY is not enabled more investigation and a proper and final fix is still needed. Issue: 14297
| * | | Merge branch 'test-CompileFeatures-c11-range' into release-3.11Brad King2018-02-211-1/+1
| |\ \ \ | | | | | | | | | | | | | | | Merge-request: !1785
* | \ \ \ Merge topic 'test-ExternalProject-serial'Brad King2018-02-221-0/+4
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 8a55ad2c Tests: Run ExternalProject tests serially Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !1783
| * | | | | Tests: Run ExternalProject tests seriallyBrad King2018-02-211-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | These tests use a lot of resources, so run them separately from other tests to avoid competition (which may cause spurious timeouts).
* | | | | | Merge topic 'test-CompileFeatures-c11-range'Brad King2018-02-221-1/+1
|\ \ \ \ \ \ | |/ / / / / |/| | / / / | | |/ / / | |/| | | | | | | | | | | | | 972f7caa Tests: Make CompileFeatures C dialect check consistent with impl Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !1785
| * | | | Tests: Make CompileFeatures C dialect check consistent with implBrad King2018-02-211-1/+1
| | |/ / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | `Modules/CMakeCCompilerId.c.in` will report the C dialect as 11 whenever `__STDC_VERSION__` indicates *at least* C 11. Make the test consistent with this. We already do this for the C++ case. Fixes: #17740
* | | | Merge topic 'string-join'Brad King2018-02-208-0/+32
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 689eeb67 string: Add JOIN subcommand Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: Pavel Solodovnikov <hellyeahdominate@gmail.com> Merge-request: !1762
| * | | | string: Add JOIN subcommandAlex Turbov2018-02-168-0/+32
| |/ / / | | | | | | | | | | | | | | | | This is just like CONCAT but accepts a glue string to put between each value. `JOIN ""` is equivalent to `CONCAT`.
* | | | Merge topic 'file_cmd_touch'Brad King2018-02-1612-6/+39
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | e78e24f6 Replaces execute_process calls to touch files with file(TOUCH) calls 602988e1 Adds file(TOUCH) and file(TOUCH_NOCREATE) sub-commands Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !1705
| * | | | Replaces execute_process calls to touch files with file(TOUCH) callsShane Parris2018-02-152-6/+3
| | | | |
| * | | | Adds file(TOUCH) and file(TOUCH_NOCREATE) sub-commandsShane Parris2018-02-1510-0/+36
| | | | |
* | | | | Merge topic 'genex-IN_LIST-operator'Brad King2018-02-162-0/+10
|\ \ \ \ \ | |/ / / / |/| | | | | | | | | | | | | | | | | | | | | | | | 5089f560 Genex: Add IN_LIST logical operator Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !1724
| * | | | Genex: Add IN_LIST logical operatorMarc Chevrier2018-02-072-0/+10
| |/ / / | | | | | | | | | | | | Implements #17679
* | | | Merge topic 'enhanced-UseSWIG-Module'Brad King2018-02-1521-69/+250
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 0bef9eb4 UseSWIG: modernize module d6048bd1 UseSWIG: Re-work test framework Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !1707
| * | | | UseSWIG: modernize moduleMarc Chevrier2018-02-148-8/+146
| | | | |
| * | | | UseSWIG: Re-work test frameworkMarc Chevrier2018-02-1417-70/+113
| | |_|/ | |/| |
* | | | Merge topic 'directory-property-TESTS'Brad King2018-02-153-1/+21
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | b513a879 Tests management: add TESTS directory property Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !1748
| * | | | Tests management: add TESTS directory propertyMarc Chevrier2018-02-083-1/+21
| | |/ / | |/| | | | | | | | | | Implements: #17680
* | | | Merge topic 'export-android-mk'Brad King2018-02-151-1/+1
|\ \ \ \ | | |_|/ | |/| | | | | | | | | | | | | | | | | | | | | | b6d68766 Android.mk: Fix export of static libraries with PRIVATE dependencies 56e16885 Android.mk: Evaluate generator expressions up front Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !1766
| * | | Android.mk: Fix export of static libraries with PRIVATE dependenciesBrad King2018-02-141-1/+1
| |/ / | | | | | | | | | | | | | | | | | | | | | The `LINK_ONLY` generator expression is used to represent private dependencies of static libraries in their `INTERFACE_LINK_LIBRARIES` property value. Fix evaluation of generator expressions during export to support the `LINK_ONLY` genex. Extend the RunCMake.AndroidMK test with a case for this.
* | | Merge topic 'ninja-cmd'Brad King2018-02-143-0/+23
|\ \ \ | |_|/ |/| | | | | | | | | | | | | | 22e8b3af Ninja: Generate scripts for long custom command sequences Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !1604
| * | Ninja: Generate scripts for long custom command sequencesRoger Leigh2018-02-063-0/+23
| |/ | | | | | | | | | | | | | | | | | | | | | | Ninja runs just one command line for every build statement, so the Ninja generator needs to `&&`-chain multiple commands together into one long string. For long custom command sequences this can exceed the maximum command-line length for the operating system. In such cases, write the commands out to a script instead, and then run the script from Ninja's one command line. Co-Author: Brad King <brad.king@kitware.com> Fixes: #15612
* | MAINT: Misc. typosluz.paz2018-02-133-3/+3
|/ | | | Found via `codespell -q 3 -I ../cmake-whitelist.txt`.
* Tests: Add missing error check in CudaOnly.GPUDebugFlagBrad King2018-02-011-0/+5
| | | | If `cudaMallocManaged` fails then later use of `has_debug` is not valid.
* Merge topic 'msvc_cuda_files_use_consistent_obj_names'Brad King2018-01-316-23/+37
|\ | | | | | | | | | | | | fa583869 CUDA: Use MSVC default pattern for naming object files Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !1722
| * CUDA: Use MSVC default pattern for naming object filesRobert Maynard2018-01-306-23/+37
| | | | | | | | | | The default that CUDA uses causes failures when you try to embed CUDA obj's into another target.
* | Merge topic 'source_group-TREE-args'Brad King2018-01-314-4/+21
|\ \ | |/ |/| | | | | | | | | 365e02e7 source_group: Fix TREE argument parsing Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !1713
| * source_group: Fix TREE argument parsingMateusz Janek2018-01-304-4/+21
| | | | | | | | Fixes: #17581
* | Merge topic 'ctest_start_function_scope'Brad King2018-01-293-1/+12
|\ \ | |/ |/| | | | | | | | | | | 13347740 Help: add release notes, documentation for CTEST_RUN_CURRENT_SCRIPT behavior 74092d92 cmCTestScriptHandler: Add new field ShouldRunCurrentScript Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !1703
| * cmCTestScriptHandler: Add new field ShouldRunCurrentScriptKyle Edwards2018-01-263-1/+12
| | | | | | | | | | | | | | | | | | | | 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.
* | Tests: Speed up RunCMake.TargetPropertyGeneratorExpressionsBrad King2018-01-2562-241/+135
| | | | | | | | Consolidate similar test cases.
* | Tests: Speed up RunCMake.GeneratorExpressionBrad King2018-01-2525-71/+30
|/ | | | Avoid enabling languages in cases that do not need them.
* Merge topic 'RemoveKDevelop3'Brad King2018-01-252-3/+2
|\ | | | | | | | | | | | | | | 551bd0b3 Generators: adjust error message for the removed KDevelop3 generator 9198e6a2 Generators: remove KDevelop3 generator Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !1688
| * Generators: remove KDevelop3 generatorAlex Neundorf2018-01-242-3/+2
| | | | | | | | | | | | | | | | | | | | The last KDevelop3 release was many years ago, in 2008 I think. I haven't seen or read about anybody using KDevelop 3 since a long time, so I think it can safely be removed from CMake. KDevelop 4 (first released in 2010) has its own proper CMake support now, independent from this generator. Alex
* | Merge topic 'sourceFile-new-properties'Brad King2018-01-2526-48/+139
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | 04483111 sourceFile properties: add property INCLUDE_DIRECTORIES 3073bd1f VisualStudio generators: refactoring 78b1c2e0 sourceFile properties: add property COMPILE_OPTIONS 3f935e69 LocalGenerator: refactoring Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !1596
| * | sourceFile properties: add property INCLUDE_DIRECTORIESMarc Chevrier2018-01-2422-2/+113
| | |
| * | sourceFile properties: add property COMPILE_OPTIONSMarc Chevrier2018-01-235-48/+28
| |/ | | | | | | | | | | | | Add the support of per-source property COMPILE_OPTIONS, including generator expressions support. Related: #17507
* | Merge topic 'fix-include_regular_expression-subdir'Brad King2018-01-254-0/+9
|\ \ | | | | | | | | | | | | | | | | | | 2d64f9f0 include_regular_expression: Fix propagation to subdirectories Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !1690
| * | include_regular_expression: Fix propagation to subdirectoriesBrad King2018-01-244-0/+9
| |/ | | | | | | | | | | | | | | | | | | | | | | | | | | Refactoring in commit v3.4.0-rc1~321^2 (cmMakefile: Remove special handling of INCLUDE_REGULAR_EXPRESSION, 2015-04-04) accidentally broke propagation of the include regex to subdirectories. Refactoring in commit v3.5.0-rc1~319^2~1 (cmState: Initialize properties immediately, 2015-10-07) moved maintenance of this value from `cmMakefile` to `cmStateSnapshot`. Restore propagation of the `INCLUDE_REGULAR_EXPRESSION` to subdirectories and add a test to cover it. Fixes: #17676
* | Merge topic 'GenerateExportHeader-include-guard'Brad King2018-01-2419-14/+46
|\ \ | | | | | | | | | | | | | | | | | | | | | b1ae9aaf GenerateExportHeader: add release notes, tests for include guard changes f4082b0e GenerateExportHeader: add INCLUDE_GUARD_NAME option Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !1643