summaryrefslogtreecommitdiffstats
path: root/Tests
Commit message (Collapse)AuthorAgeFilesLines
* 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
* 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.
* | | | | | Merge topic 'Boost-Gentoo'Brad King2019-04-162-0/+30
|\ \ \ \ \ \ | |_|_|/ / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | 0b54f72e94 FindBoost: Fix detection with version suffixes on Gentoo Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !3237
| * | | | | FindBoost: Fix detection with version suffixes on GentooRolf Eike Beer2019-04-162-0/+30
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The Gentoo case added by commit 1673923c30 (FindBoost: Add support for Boost 1.67 with Python version suffixes, 2018-03-18, v3.11.0~3^2) left out the `.` version component separator and instead duplicated the RPM case. Add the missing `.` now. Fixes: #18743
| * | | | | Merge branch 'xcode-extra-sources' into release-3.14Brad King2019-04-111-0/+7
| |\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | Merge-request: !3208
* | \ \ \ \ \ Merge topic 'ghs_custom'Brad King2019-04-1522-11/+377
|\ \ \ \ \ \ \ | |_|_|/ / / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2bae6a1346 GHS: Update tests and notes 3b415c60c1 GHS: Update ExternalProject for GHS tools 83c47ef5b8 GHS: Update project layout to accommodate gbuild inconsistencies 5d2e1404bd GHS: Update project layout to build targets correctly b6bfa7eeb2 GHS: Support add_dependencies() command 39ee9718d9 GHS: Support add_custom_target() command 8d3dad9a76 GHS: Support add_custom_command( OUTPUT ) signature 37acc9e229 GHS: Update custom command build events Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: Narendhar Manimohan <narendhar15@gmail.com> Merge-request: !3119
| * | | | | | GHS: Update tests and notesFred Baksik2019-04-1122-10/+376
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | -- add new tests for custom commands -- minor test cleanup Fixes #15995 Fixes #18909 Fixes #15902
| * | | | | | GHS: Update project layout to build targets correctlyFred Baksik2019-04-111-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | -- Restructure projects and files to support proper building of targets Build order is determined by hierarchy of project files and folders Custom targets may have been run multiple times in the original file / folder structure -- Default to build targets that are part of ALL target -- List all known targets for this project Includes global targets for ALL_BUILD and INSTALL -- Compute build order for building targets
* | | | | | | Merge topic 'genex-target-prefix-suffix'Brad King2019-04-1225-6/+270
|\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | b70bac647d Genex: add $<TARGET_FILE_PREFIX:...> and $<TARGET_FILE_SUFFIX:...> f65763fe9b Refactor: Add new methods to retrieve prefix and suffix Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !3207
| * | | | | | | Genex: add $<TARGET_FILE_PREFIX:...> and $<TARGET_FILE_SUFFIX:...>Marc Chevrier2019-04-1025-6/+270
| | |_|_|_|_|/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | | These capabilities complement MR !3190 and is also needed to solve issue #18771.
* | | | | | | Merge topic 'iface-headers'Brad King2019-04-124-0/+29
|\ \ \ \ \ \ \ | |_|_|_|_|/ / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | a40f9083dd INTERFACE Target: allow (PUBLIC/PRIVATE)_HEADER properties Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !3181
| * | | | | | INTERFACE Target: allow (PUBLIC/PRIVATE)_HEADER propertiesAvraham Shukron2019-04-114-0/+29
| | |/ / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Also support installing headers on an INTERFACE library. Signed-off-by: Avraham Shukron <avraham.shukron@gmail.com> Fixes: #15234
* | | | | | Merge topic 'cmSystemTools-StringToULong-negatives'Brad King2019-04-121-0/+17
|\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | f0948499f6 cmSystemTools: Fix StringToULong to reject negative numbers Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !3216
| * | | | | | cmSystemTools: Fix StringToULong to reject negative numbersBrad King2019-04-111-0/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Fixes: #19161
* | | | | | | Merge topic 'xcode-extra-sources'Brad King2019-04-121-0/+7
|\ \ \ \ \ \ \ | |/ / / / / / |/| | | | / / | | |_|_|/ / | |/| | | | | | | | | | | | | | | | | | | | | | 428c1e429f Xcode: Avoid mutating App Bundle targets during generation b4385d5ccc Xcode: Factor out duplicate source group code into lambda Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !3208
| * | | | | Xcode: Avoid mutating App Bundle targets during generationBrad King2019-04-111-0/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | For `MACOSX_BUNDLE` targets we generate an `Info.plist` automatically and add it to the sources presented to Xcode. Avoid mutating the original target's list of sources to achieve this. Otherwise when we generate the same target again (e.g. in a sub-project's Xcode file) it will look different than the first time and possibly break invariants. Fixes: #19114
* | | | | | Merge topic 'test-autogen-GAT-generator'Brad King2019-04-111-0/+3
|\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 06dab0f0e5 Tests: Fix Qt*Autogen.GlobalAutogenTarget to use matching generator Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !3210
| * | | | | | Tests: Fix Qt*Autogen.GlobalAutogenTarget to use matching generatorBrad King2019-04-101-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Build the GAT project with the same generator as the rest of the test. This was accidentally left out of commit 8c8731b422 (Autogen: Add test for CMAKE_GLOBAL_AUTOGEN/RCC_TARGET, 2018-11-11, v3.14.0-rc1~396^2~2).
* | | | | | | Merge topic 'test-explicit-dirs'Brad King2019-04-113-13/+29
|\ \ \ \ \ \ \ | |_|_|_|/ / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 39e7fd8c68 Tests: Avoid enabling languages in RunCMake.CommandLine -S and -B cases baed22c4b0 Tests: Fix RunCMake.CommandLine test to use generator with -S and -B 44d6370db3 Tests: Add RunCMake helper to run cmake with options 538721939f Tests: Teach RunCMake to optionally exclude the source dir argument Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !3209
| * | | | | | Tests: Avoid enabling languages in RunCMake.CommandLine -S and -B casesBrad King2019-04-101-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The test project does not compile any sources and so does not need to enable any languages.
| * | | | | | Tests: Fix RunCMake.CommandLine test to use generator with -S and -BBrad King2019-04-101-11/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The `-S` and `-B` command-line option tests do generate build systems and so should use the generator being tested.
| * | | | | | Tests: Add RunCMake helper to run cmake with optionsBrad King2019-04-101-0/+5
| | | | | | |
| * | | | | | Tests: Teach RunCMake to optionally exclude the source dir argumentBrad King2019-04-101-1/+7
| |/ / / / /
* | | | | | Merge topic 'meta-feature_only_infer_granular_support'Brad King2019-04-1010-25/+86
|\ \ \ \ \ \ | |/ / / / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 613ac56e50 Add a test to verify meta-feature parity with granular features b0f46c48f6 CompileFeatures: Now able to presume full language level support 646fb1a646 CompileFeatures: memoize C++ compilers with full language level support 0d641fcfad Tests: Remove outdated portion of CompileFeatures genex test Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !3176
| * | | | | Add a test to verify meta-feature parity with granular featuresRobert Maynard2019-04-097-0/+64
| | | | | |
| * | | | | CompileFeatures: Now able to presume full language level supportRobert Maynard2019-04-092-14/+22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Previously compilers that only supported the meta-level flags would not have any of the granular features listed. Now we presume that they have full support and enable all the features. Update granular feature tests to skip the actual compilation checks for the presumed features.
| * | | | | Tests: Remove outdated portion of CompileFeatures genex testBrad King2019-04-091-11/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The genex part of the test verifies that `$<COMPILE_FEATURES:...>` evaluates as expected. It does not need to actually try using code with the associated features, as that is tested separately.
* | | | | | Merge topic 'argument-parser'Brad King2019-04-094-3/+151
|\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | b783e62533 cmExecuteProcessCommand: Port to cmArgumentParser 9bddb03f31 cmParseArgumentsCommand: Port to cmArgumentParser 45edf1ad66 Retire cmCommandArgumentsHelper f5acecaa6f cmExportCommand: Port to cmArgumentParser e6b6bb0618 cmInstallCommand: Port to cmArgumentParser 4336a29edd cmFileCommand: Port to cmArgumentParser 4359fe133b Introduce cmArgumentParser Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: Leonid Pospelov <pospelovlm@yandex.ru> Merge-request: !3137
| * | | | | | cmExportCommand: Port to cmArgumentParserRegina Pfeifer2019-04-042-3/+2
| | | | | | |
| * | | | | | Introduce cmArgumentParserRegina Pfeifer2019-04-042-0/+149
| | | | | | |
* | | | | | | Merge topic 'implicit-includes-relative'Brad King2019-04-0925-20/+65
|\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 442f4c4902 Merge branch 'backport-implicit-includes-relative' ef41d49812 Fix implicit include directory extraction for adaptive relative paths 6bc6fc2a7f Tests: Teach RunCMake.ParseImplicitIncludeInfo to match output by regex 82948805ec Tests: Clarify hand-written cases in RunCMake.ParseImplicitIncludeInfo Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !3204
| * \ \ \ \ \ \ Merge branch 'backport-implicit-includes-relative'Brad King2019-04-0825-20/+65
| |\ \ \ \ \ \ \ | | |_|_|_|/ / / | |/| | | | / / | | | |_|_|/ / | | |/| | | |
| | * | | | | Fix implicit include directory extraction for adaptive relative pathsBrad King2019-04-085-0/+45
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In some cases GCC reports *relative* implicit include directories. They are computed adaptively with respect to the current working directory such that the effective implicit include directory is an unchanging absolute path. Teach our implicit include directory extraction to recognize such paths and normalize them. Fixes: #19133
| | * | | | | Tests: Teach RunCMake.ParseImplicitIncludeInfo to match output by regexBrad King2019-04-0816-17/+17
| | | | | | |
| | * | | | | Tests: Clarify hand-written cases in RunCMake.ParseImplicitIncludeInfoBrad King2019-04-085-2/+2
| | | |_|/ / | | |/| | |
| | * | | | Merge branch 'implicit-includes' into release-3.14Brad King2019-03-2916-70/+78
| | |\ \ \ \ | | | | | | | | | | | | | | | | | | | | | Merge-request: !3157
| | * \ \ \ \ Merge branch 'FindFontconfig-var-case' into release-3.14Brad King2019-03-271-3/+3
| | |\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | Merge-request: !3153
* | | | | | | | Genex: Add $<FILTER:list,INCLUDE|EXCLUDE,regex>Sebastian Lipponer2019-04-0810-0/+45
|/ / / / / / /
* | | | | | | Genex: Add capability to retrieve base name for various target artifactsMarc Chevrier2019-04-0825-1/+306
| | | | | | | | | | | | | | | | | | | | | | | | | | | | This new capability is required to solve efficiently issue #18771