summaryrefslogtreecommitdiffstats
path: root/Tests
Commit message (Collapse)AuthorAgeFilesLines
* Merge topic 'test-WriteBasicConfigVersionFile'Brad King2018-11-155-906/+891
|\ | | | | | | | | | | | | | | f3a381115f Tests: Simplify RunCMake.WriteBasicConfigVersionFile 0dbcc1afbf Tests: Factor out RunCMake.WriteBasicConfigVersionFile test Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !2612
| * Tests: Simplify RunCMake.WriteBasicConfigVersionFileBrad King2018-11-142-29/+8
| |
| * Tests: Factor out RunCMake.WriteBasicConfigVersionFile testBrad King2018-11-146-906/+912
| | | | | | | | | | The `WriteBasicConfigVersionFile` section of the `FindPackageTest` is independent of the rest.
* | Merge topic 'configure_file-canonical-deps'Brad King2018-11-154-1/+14
|\ \ | | | | | | | | | | | | | | | | | | 6199637e95 configure_file: canonicalize input and output path in dependencies Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !2586
| * | configure_file: canonicalize input and output path in dependenciesFrank Benkstein2018-11-134-1/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Represent the input file path internally in canonical form. Otherwise multiple `configure_file` calls that share the same input file but specify it relative to different directories (e.g. via `../`) result in multiple copies of the dependency on the rule to re-run CMake. This causes the Ninja generator to emit duplicate phony build statements for these dependencies, which generates an error with `-w dupbuild=err`, which will be default in Ninja 1.9. Also canonicalize the output path for consistency. Add a test case. Fixes: #18584
* | | Merge topic 'deprecate-findqt'Brad King2018-11-156-0/+51
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | 0f5c1b404b find_package(): Add policy to remove the FindQt module Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: noo mook <noomook2519@gmail.com> Merge-request: !2554
| * | | find_package(): Add policy to remove the FindQt moduleKyle Edwards2018-11-146-0/+51
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Removing FindQt.cmake gives Qt upstream a path forward to export its own QtConfig.cmake files which can be found by find_package() without having to explicitly specify CONFIG. Projects that still want to use Qt3/4 can call find_package(Qt[34]), include(FindQt), or add FindQt.cmake to their CMAKE_MODULE_PATH.
* | | | Merge topic 'autogen_info_write'Brad King2018-11-155-39/+39
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | e0c26406aa Autogen: Sort tests 83bbfb1d53 Autogen: Add a definitions test to the MocOnly test 01d5e5c460 Autogen: Add and use cmQtAutoGenInitializer::InfoWriter class Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !2610
| * | | | Autogen: Sort testsSebastian Holtermann2018-11-143-38/+32
| | | | |
| * | | | Autogen: Add a definitions test to the MocOnly testSebastian Holtermann2018-11-142-1/+7
| | |_|/ | |/| |
* | | | Tests: Add option for custom RunCMake.XcodeProject timeoutBrad King2018-11-141-0/+7
|/ / / | | | | | | | | | The test has many cases and can take a long time on busy machines.
* | | Merge topic 'GNUInstallDirs-FreeBSD-info'Brad King2018-11-145-5/+127
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | f835f189ae GNUInstallDirs: Update FreeBSD "info" destination to share/info 4c0d97dd98 GNUInstallDirs: Split "info" and "man" default logic 1b8f0ca515 Tests: Split GNUInstallDirs expectations for FreeBSD Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: Rolf Eike Beer <eike@sf-mail.de> Merge-request: !2588
| * | | GNUInstallDirs: Update FreeBSD "info" destination to share/infoTobias C. Berner2018-11-134-8/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | FreeBSD ports commit r484628 (Install texinfo files (GNU info) into ${PREFIX}/share/info, 2018-11-10) changed the "info" destination from "info" to "share/info". The commit included a patch to their distribution of CMake to fix the `GNUInstallDirs` module too. Apply a similar logic change to our upstream version of the module. We already made a similar change for GNU/kFreeBSD in commit v3.13.0-rc2~8^2 (GNUInstallDirs: Don't use BSD info and man paths on GNU/kFreeBSD, 2018-10-21). Fixes: #18585
| * | | Tests: Split GNUInstallDirs expectations for FreeBSDBrad King2018-11-135-5/+127
| | |/ | |/|
* | | Merge topic 'if_support_checking_if_cache_var_defined'Brad King2018-11-131-0/+9
|\ \ \ | |_|/ |/| | | | | | | | | | | | | | 1222f02e34 If: Support the 'DEFINED CACHE{}' syntax Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !2561
| * | If: Support the 'DEFINED CACHE{}' syntaxRobert Maynard2018-11-091-0/+9
| | |
* | | Merge topic 'pie-link-options'Craig Scott2018-11-1217-1/+257
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | c4b4d8b3a6 POSITION_INDEPENDENT_CODE: Manage link flags for executables 724a0346f7 POSITION_INDEPENDENT_CODE: Fix erroneous '-fPIE' flag for Sun Studio 023188ffb4 INTERFACE_POSITION_INDEPENDENT_CODE: add generator expressions support Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !2465
| * | | POSITION_INDEPENDENT_CODE: Manage link flags for executablesMarc Chevrier2018-11-1111-1/+229
| | | | | | | | | | | | | | | | Fixes: #14983, #16561
| * | | INTERFACE_POSITION_INDEPENDENT_CODE: add generator expressions supportMarc Chevrier2018-11-087-0/+28
| |/ / | | | | | | | | | Fixes: #16532
* | | Autogen: Add test for CMAKE_GLOBAL_AUTOGEN/RCC_TARGETSebastian Holtermann2018-11-1117-0/+279
| |/ |/|
* | cpack: Better error message when generator doesn't exist.Robert Maynard2018-11-081-1/+1
|/ | | | | | Currently the CPack error message when passed an invalid generator name reads like the generator failed to work, rather than the name was invalid.
* Merge topic 'install-defaults'Brad King2018-11-0832-0/+505
|\ | | | | | | | | | | | | | | | | | | fdcd559a8e Help: Add documentation and release notes for install 9fc20a4f3e install: Add sane set of defaults for DESTINATION and file type parameters Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: Alex Turbov <i.zaufi@gmail.com> Acked-by: Ruslan Baratov <ruslan_baratov@yahoo.com> Merge-request: !2558
| * install: Add sane set of defaults for DESTINATION and file type parametersKyle Edwards2018-11-0732-0/+505
| | | | | | | | | | | | | | | | | | | | | | | | If the user does not specify a DESTINATION for a target type, the install() command checks to see if the appropriate variable from GNUInstallDirs is set. If it is not, then it uses an appropriate hard-coded guess. In addition, for FILES and DIRECTORY, the user can specify a file type instead of a DESTINATION, and the command will use the appropriate variable from GNUInstallDirs, or a hard-coded guess if it is not set.
* | Merge topic 'find-jpeg-turbo-multiarch-version'Brad King2018-11-082-1/+3
|\ \ | |/ |/| | | | | | | | | 1c4c4be509 FindJPEG: handle multiarch installs of libjpeg-turbo Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !2572
| * FindJPEG: handle multiarch installs of libjpeg-turboBen Boeckel2018-11-062-1/+3
| | | | | | | | | | | | Fedora installs a `jconfig-32.h` and `jconfig-64.h` which were not searched. Instead, glob up all `jconfig` headers and bail once we've found a version number.
* | Merge topic 'fix-double-warn-uninitialized-in-script-mode'Brad King2018-11-073-0/+10
|\ \ | | | | | | | | | | | | | | | | | | | | | 53a5aec899 CMP0053: Fix double warning on uninitialized variables in -P mode f92f93467e cmMakefile: Rename SuppressWatches to SuppressSideEffects Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !2565
| * | CMP0053: Fix double warning on uninitialized variables in -P modeR2RT2018-11-053-0/+10
| | | | | | | | | | | | | | | | | | | | | | | | When `CMP0053` is not set to OLD or NEW then we compute both variants in case we need to warn about a behavior change. Do not allow both code paths to produce an uninitialized variable warning. Fixes: #18552
* | | Merge topic 'FindSQLite3-module'Brad King2018-11-074-0/+40
|\ \ \ | |_|/ |/| | | | | | | | | | | | | | fe40570608 FindSQLite3: Add module to find SQLite3 Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !2557
| * | FindSQLite3: Add module to find SQLite3Chuck Atkins2018-11-064-0/+40
| | |
* | | Merge topic 'FindPostgreSQL-target'Brad King2018-11-064-0/+45
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 575e2cc35d FindPostgreSQL: extract the actual version number 7413f29fe6 Tests/FindPostgreSQL: add a test for FindPostgreSQL d2235fd253 FindPostgreSQL: add an imported target 7a801b7dfb FindPostgreSQL: Modernize documentation layout Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !2555
| * | | Tests/FindPostgreSQL: add a test for FindPostgreSQLBen Boeckel2018-11-014-0/+45
| | | |
* | | | Merge topic 'autogen_origin_depends'Brad King2018-11-0626-50/+310
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 47f9c15c60 Autogen: Update <ORIGIN>_autogen target documentation 336893d9eb Autogen: Separate AUTOGEN_TARGET_DEPENDS tests into own tests suite 846043dd35 Autogen: Rename MocDepends test to AutogenOriginDependsOn b71a9598a4 Autogen: Add test for AUTOGEN_ORIGIN_DEPENDS=OFF f74c406501 Autogen: Add (CMAKE_)AUTOGEN_ORIGIN_DEPENDS release notes 0669de5d36 Autogen: Add (CMAKE_)AUTOGEN_ORIGIN_DEPENDS documentation b5e895b5d4 Autogen: Add (CMAKE_)AUTOGEN_ORIGIN_DEPENDS support Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !2518
| * | | | Autogen: Separate AUTOGEN_TARGET_DEPENDS tests into own tests suiteSebastian Holtermann2018-11-057-48/+70
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The tests for AUTOGEN_TARGET_DEPENDS were part of the AutogenOriginDependsOn tests suite. This separates them into an own AutogenTargetDepends tests suite.
| * | | | Autogen: Rename MocDepends test to AutogenOriginDependsOnSebastian Holtermann2018-11-0312-2/+2
| | | | |
| * | | | Autogen: Add test for AUTOGEN_ORIGIN_DEPENDS=OFFSebastian Holtermann2018-11-0312-0/+238
| | |_|/ | |/| |
* | | | Merge topic 'rename-cpack-ext-generator'Brad King2018-11-0617-38/+38
|\ \ \ \ | |_|_|/ |/| | | | | | | | | | | | | | | | | | | 20d5e77a27 CPack: Rename Ext generator to External Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !2566
| * | | CPack: Rename Ext generator to ExternalCraig Scott2018-11-0517-38/+38
| | | | | | | | | | | | | | | | | | | | Ext and External were used inconsistently in the code and the docs. This change converts all uses of Ext to External, including within variable names used by the generator.
* | | | Merge topic 'custom-command-work-dir-genex'Brad King2018-11-051-2/+2
|\ \ \ \ | |_|/ / |/| | | | | | | | | | | | | | | | | | | 98d59417b0 add_custom_{command,target}: Fix WORKING_DIRECTORY leading genex Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !2559
| * | | add_custom_{command,target}: Fix WORKING_DIRECTORY leading genexBrad King2018-11-031-2/+2
| |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Since commit v3.13.0-rc1~39^2 (add_custom_{command,target}: WORKING_DIRECTORY generator expressions, 2018-09-22) the `WORKING_DIRECTORY` option accepts generator expressions. Fix support for the case of a leading generator expression by deferring conversion to an absolute path until after evaluation of the generator expression. Fixes: #18543
| * | Merge branch 'cuda-thread-flags' into release-3.13Brad King2018-10-247-16/+73
| |\ \ | | | | | | | | | | | | Merge-request: !2512
* | \ \ Merge topic 'FindGDAL-target'Brad King2018-11-024-0/+41
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 22ba9b6a32 FindGDAL: set the GDAL_VERSION 525ff0c3bc Tests/FindGDAL: add a test for FindGDAL 87324b9b6a FindGDAL: add an imported target dfb3f58f79 FindGDAL: Modernize documentation layout Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !2552
| * | | | FindGDAL: set the GDAL_VERSIONBen Boeckel2018-11-012-6/+3
| | | | |
| * | | | Tests/FindGDAL: add a test for FindGDALBen Boeckel2018-11-014-0/+44
| | |_|/ | |/| |
* | | | Merge topic 'check-keywords-only-if-used'Brad King2018-11-0222-0/+88
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 4babc9058a cmTargetPropCommandBase: check keywords after parsing 45a49ae58a cmTargetPropCommandBase: simplify code path 9f64974f5e cmTargetPropCommandBase: skip property setting if there's nothing to add 4201a11c2b Tests: add tests for empty-value keyword arguments in target_* Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !2514
| * | | | cmTargetPropCommandBase: check keywords after parsingBen Boeckel2018-10-2614-40/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The following was disallowed: add_library(iface INTERFACE) target_link_libraries(iface PUBLIC) just due to the mention of the `PUBLIC` keyword. Instead, only error if there are actually `PUBLIC` dependencies specified (and analogously for other restrictions). Update tests to expect this new behavior.
| * | | | Tests: add tests for empty-value keyword arguments in target_*Ben Boeckel2018-10-2636-0/+128
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Not all of these commands accept non-compilable (i.e., IMPORTED) targets, so those calls are currently just commented out. If they ever do start to accept them, the tests should be enabled.
* | | | | Merge topic 'fix-custom-target-with-csharp'Brad King2018-11-014-2/+15
|\ \ \ \ \ | |_|/ / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 9040df31e2 Merge branch 'backport-fix-custom-target-with-csharp' 1acd1c2b50 CSharp: Fix regression in VS project type selection for custom target a56edad6d6 CSharp: Fix regression in VS project type selection for custom target Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !2549
| * | | | CSharp: Fix regression in VS project type selection for custom targetBrad King2018-10-314-2/+15
| | |/ / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | A target created by `add_custom_target` should always be a `.vcxproj` file even if it has `.cs` sources involved in custom commands and such. The latter case was broken by refactoring in commit v3.12.0-rc1~160^2~7 (remove TargetIsCSharpOnly() and use methods from cmGeneratorTarget, 2018-03-19). The reason is that the `HasLanguage` method added by commit v3.12.0-rc1~239^2~6 (cmGeneratorTarget: add HasLanguage() as wrapper for GetLanguages(), 2018-03-19) does not check the target type and so is not a suitable check for deciding the project file extension. The `HasLanguage` method was an attempt at an abstraction that turns out not to work very well. Replace it with a dedicated `IsCSharpOnly` method that considers the target type, sources, and non-transitive `LINKER_LANGUAGE`. Fixes: #18515
| * | | Merge branch 'vs-csharp-in-custom-target' into release-3.13Brad King2018-10-233-0/+3
| |\ \ \ | | | | | | | | | | | | | | | Merge-request: !2515
* | \ \ \ Merge topic 'set_directory_properties-script-mode'Brad King2018-10-303-0/+5
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 50572d638b set_directory_properties: Restore in script mode Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !2544