summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake
Commit message (Collapse)AuthorAgeFilesLines
* ctest: Include ChangeId in Update.xmlZack Galbreath2019-04-235-0/+50
|
* 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
* | Merge topic 'msvc-runtime-library'Brad King2019-04-1715-0/+108
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-1715-0/+108
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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 '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 '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-107-0/+64
|\ \ \ \ \ | |/ / / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
| | | | |
* | | | | Merge topic 'argument-parser'Brad King2019-04-092-3/+2
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
| | | | | |
* | | | | | 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
* | | | | | | 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
* | | | | Merge topic 'remove_duplicates'Brad King2019-04-0411-0/+50
|\ \ \ \ \ | |_|_|/ / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | abbb8a7b1d Genex: Add $<REMOVE_DUPLICATES:list> 11338389e5 Help: Fix description in cmake-generator-expressions(7) manual Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !3154
| * | | | Genex: Add $<REMOVE_DUPLICATES:list>Sebastian Lipponer2019-04-0111-0/+50
| | | | |
* | | | | Merge topic 'implicit-includes'Brad King2019-03-2916-70/+78
|\ \ \ \ \ | |/ / / / |/| | / / | | |/ / | |/| | | | | | | | | | | | | | dad86f1873 ParseImplicitIncludeInfo: Canonicalize implicit include dirs Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: Michel Zou <xantares09@hotmail.com> Merge-request: !3157
| * | | ParseImplicitIncludeInfo: Canonicalize implicit include dirsBrad King2019-03-2916-70/+78
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The implicit include directory extraction added by commit 5990ecb741 (Compute implicit include directories from compiler output, 2018-12-07, v3.14.0-rc1~108^2) leaves paths like `/usr/lib/../include` unchanged. Fix the logic to canonicalize such paths (e.g. to `/usr/include`) as we do for implicit link directories already. This is important to ensure the set of implicit directories is represented in the same form as the include directories that will be compared to them. Issue: #19095
* | | | Merge topic 'toolchain-include_directories'Brad King2019-03-265-0/+17
|\ \ \ \ | | |/ / | |/| | | | | | | | | | | | | | | | | | 588fa1bb9e Restore support for include_directories() in toolchain files Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !3140
| * | | Restore support for include_directories() in toolchain filesBrad King2019-03-255-0/+17
| |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Any `include_directories()` calls in toolchain files are used during our ABI detection step even though it does not include any system headers. Since commit 5990ecb741 (Compute implicit include directories from compiler output, 2018-12-07, v3.14.0-rc1~108^2), that check is also used to detect implicit include directories. Any `include_directories()` in a toolchain file are detected as implicit and later excluded from explicit specification on compiler command lines, thus breaking the purpose of the calls in the first place. Fix the implicit include directory detection step to avoid using paths from `include_directories()` calls in the toolchain file. Fixes: #19079
| * | Merge branch 'install-no-imported-global' into release-3.14Brad King2019-03-074-0/+9
| |\ \ | | | | | | | | | | | | Merge-request: !3071
* | \ \ Merge topic 'ctest_submit_get_buildid'Brad King2019-03-251-1/+1
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ba7e44eb7a ctest_submit: Add option BUILD_ID Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: Zack Galbreath <zack.galbreath@kitware.com> Merge-request: !3120
| * | | | ctest_submit: Add option BUILD_IDZack Galbreath2019-03-221-1/+1
| | |_|/ | |/| | | | | | | | | | Fixes: #18968
* | | | Merge topic 'pkg-get-variable-prefix-path'Brad King2019-03-254-0/+56
|\ \ \ \ | |/ / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | f401a57160 pkg_get_variable now sets PKG_CONFIG_PATH like pkg_check_modules 4d76941924 FindPkgConfig: hoist PKG_CONFIG_PATH ops out into _pkg_set_path_internal 78f23de70c More tests for pkg_get_variable Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !3131
| * | | pkg_get_variable now sets PKG_CONFIG_PATH like pkg_check_modulesDan Kegel2019-03-201-2/+1
| | | | | | | | | | | | | | | | Fixes: #15805
| * | | More tests for pkg_get_variableDan Kegel2019-03-204-0/+57
| | | | | | | | | | | | | | | | Issue: #15805
* | | | Merge topic 'xcodescheme2'Brad King2019-03-222-0/+12
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 413b71485a Xcode: Create Xcode schemes per target Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !3098
| * | | | Xcode: Create Xcode schemes per targetHarry Mallon2019-03-212-0/+12
| | | | |
* | | | | cmake: tar: Parse 'cmake -E tar' argumentsBartosz Kosiorek2019-03-206-19/+24
| |/ / / |/| | |
* | | | Merge topic 'cmake--install'Kyle Edwards2019-03-198-0/+32
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 73f23d1e00 cmake: add '--install <dir>' option Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: Alex Turbov <i.zaufi@gmail.com> Acked-by: Bartosz <gang65@poczta.onet.pl> Acked-by: Cristian Adam <cristian.adam@gmail.com> Rejected-by: Alex Turbov <i.zaufi@gmail.com> Merge-request: !3069