summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake
Commit message (Collapse)AuthorAgeFilesLines
* 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
| * | | | cmake: add '--install <dir>' optionJiang Yi2019-03-168-0/+32
| | | | | | | | | | | | | | | | | | | | Fixes: #19023
* | | | | cmake: Don't interrupt archive creation if unable to read a file.Bartosz Kosiorek2019-03-187-7/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Rationale: Currently during creation of archive by 'tar', if error appears, it interrupt archive creation. As a result only part of files are archived This behaviour is not consistent with 'copy_directory', native 'tar' and other command behaviour. With this Merge Request this behaviour is fixed.
* | | | | cmake: tar: Display warning when no files provided during archive creationBartosz Kosiorek2019-03-183-4/+7
| |/ / / |/| | |
* | | | Merge topic 'pkg-config-linker-flags'Marc Chevrier2019-03-161-0/+21
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | b759fa9b8e FindPkgConfig: Set linker flags on imported targets Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !3082
| * | | | FindPkgConfig: Set linker flags on imported targetsRadek Nadstawny2019-03-131-0/+21
| |/ / /
* | | | Tests: Run FindGTK2 tests only when explicitly enabledBrad King2019-03-141-2/+1
| | | | | | | | | | | | | | | | | | | | | | | | Do not `find_package(GTK2)` by default, as it gives the impression that CMake depends on it to build. We will set `CMake_TEST_FindGTK2` in the cache of automated builds where GTK2 is expected to work.
* | | | Merge topic 'short-commands'Brad King2019-03-141-1/+1
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 077ab5774c cmake: add short version of '--target <tgt>...' option 071f5e1544 cmake: Reformat '--parallel' and '--verbose' options in help Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !3078
| * | | | cmake: add short version of '--target <tgt>...' optionBartosz Kosiorek2019-03-121-1/+1
| | | | |
* | | | | Merge topic 'shell_path'Brad King2019-03-122-0/+10
|\ \ \ \ \ | |_|/ / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | 463c2fba4e Genex: Teach SHELL_PATH to support a list of paths 21da25d2a8 Tests: Generalize GeneratorExpression MSYS path conversion workaround Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !3057
| * | | | Genex: Teach SHELL_PATH to support a list of pathsHenri Manson2019-03-112-0/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Extend the genex added by commit ca6ba3fee5 (Genex: Add a SHELL_PATH expression, 2015-09-24, v3.4.0-rc1~37^2) to accept a `;`-list of paths, convert them all, and generate a list separated by the native shell `PATH``` separator.
* | | | | Merge topic 'install-no-imported-global'Brad King2019-03-084-0/+9
|\ \ \ \ \ | |_|/ / / |/| | | / | | |_|/ | |/| | | | | | | | | | 47389c5641 install: Do not crash on imported global target Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !3071
| * | | install: Do not crash on imported global targetBrad King2019-03-074-0/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Since commit e89ad0f94e (install: Allow installing targets created in another directory, 2018-06-18, v3.13.0-rc1~407^2) the `install(TARGETS)` command may find a global-scoped target outside the calling directory. Ignore an `IMPORTED GLOBAL` target if it is found in this way. Imported targets cannot be installed, and trying to do so violates internal invariants. Fixes: #19022
* | | | Merge topic 'issue-18883-support-for-multiple-targets'Brad King2019-03-067-3/+12
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 324d18bb34 cmake: Teach --build mode to support multiple targets ebc94500c1 cmGlobalGenerator: Optimize Printable() method from GeneratedMakeCommand fdeb364a84 cmGlobalGenerator: Change case of methods from GeneratedMakeCommand struct b3955a08ab cmakemain: Remove ignored --use-stderr option from command line help f1367c8c51 cmGlobalGenerator: Remove unused code Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !2939
| * | | | cmake: Teach --build mode to support multiple targetsBartosz Kosiorek2019-03-057-3/+12
| | |/ / | |/| | | | | | | | | | Fixes: #16136
* | | | Merge topic 'ios-variable'Brad King2019-03-061-0/+4
|\ \ \ \ | |/ / / |/| | / | | |/ | |/| | | | | | | e427c7c1d8 iOS: Add IOS variable Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !3051
| * | iOS: Add IOS variableRuslan Baratov2019-03-051-0/+4
| |/ | | | | | | | | | | | | Since commit 11da882a12 (Apple: Introduce separate system name for iOS, tvOS, and watchOS, 2018-01-15, v3.14.0-rc1~14^2~1) we support setting `CMAKE_SYSTEM_NAME` to `iOS`. Existing iOS toolchain files already set `IOS` as a short-hand variable, so do the same here.
| * Merge branch 'cmake_role-vs-fix' into release-3.14Brad King2019-02-272-0/+7
| |\ | | | | | | | | | Merge-request: !3028
| * \ Merge branch 'restore-min-cmake-3.1' into release-3.14Brad King2019-02-271-3/+3
| |\ \ | | | | | | | | | | | | Merge-request: !3021
* | | | Help: Clarify ordering of list(REMOVE_DUPLICATES)Kyle Edwards2019-02-272-0/+7
| | | | | | | | | | | | | | | | | | | | This also adds a test to enforce the order behavior of list(REMOVE_DUPLICATES).
* | | | Merge topic 'cmake_role-vs-fix'Brad King2019-02-272-0/+7
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | e795be115e Merge branch 'master' into cmake_role-vs-fix 4b95e7fe63 CMAKE_ROLE: Fix value in --build for Visual Studio generators Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !3028
| * \ \ \ Merge branch 'master' into cmake_role-vs-fixKyle Edwards2019-02-2626-4/+511
| |\ \ \ \ | | |_|_|/ | |/| | |
| * | | | CMAKE_ROLE: Fix value in --build for Visual Studio generatorsKyle Edwards2019-02-262-0/+7
| | |/ / | |/| | | | | | | | | | Fixes: #18990
* | | | Merge topic 'restore-min-cmake-3.1'Brad King2019-02-271-3/+3
|\ \ \ \ | |_|/ / |/| | / | | |/ | |/| | | | | | | a0d4430d66 Tests: Restore support for CMake 3.1 through 3.6 with MSVC Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !3021
| * | Tests: Restore support for CMake 3.1 through 3.6 with MSVCBrad King2019-02-261-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The change in commit a5dd159990 (Tests: Fix RunCMake.try_compile CxxStandard case on MSVC, 2017-09-22, v3.10.0-rc1~63^2) introduced use of `if()` conditions not supported until CMake 3.7, so while it was intended to restore support for CMake versions prior to 3.9, it actually only did so for 3.7 and 3.8. Backport the logic to work with CMake 3.1. Fixes: #18987
* | | Merge topic 'vs-wince-no-deploy'Brad King2019-02-262-1/+61
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | 917c035ada VS: support suppressing deployment of selected targets Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !2991
| * | | VS: support suppressing deployment of selected targetsWil Stark2019-02-252-1/+61
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add a `VS_NO_SOLUTION_DEPLOY` target property to explicitly specify for each target whether to suppress VS solution deployment of the generated target project. Fixes: #18953
* | | | XLClang: Extract compiler implicit include directoriesBrad King2019-02-255-0/+87
| | | |
* | | | XLClang: Add policy CMP0089 to present as XL for compatibilityBrad King2019-02-251-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We now identify IBM's Clang-based XL compilers, which define `__ibmxl__`, as `XLClang` rather than `XL`. In order to support existing project code that checks for `XL`, add a policy whose OLD behavior is to present the compiler id as `XL` and whose NEW behavior is to present the compiler id as `XLClang` as we really detect it.
* | | | Merge topic 'deprecate-policy-old'Brad King2019-02-251-1/+12
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 02587d80cf Add deprecation warnings for policies CMP0066 and below Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !3003
| * | | | Add deprecation warnings for policies CMP0066 and belowBrad King2019-02-211-1/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The OLD behaviors of all policies are deprecated, but only by documentation. Add an explicit deprecation diagnostic for policies introduced in CMake 3.7 and below to encourage projects to port away from setting policies to OLD.
* | | | | Merge topic 'remove-exclude-from-all-warning'Brad King2019-02-251-1/+0
|\ \ \ \ \ | |/ / / / |/| | | / | | |_|/ | |/| | | | | | | | | | d3b765d451 EXCLUDE_FROM_ALL: Don't warn if installing target excluded from all Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !3002
| * | | EXCLUDE_FROM_ALL: Don't warn if installing target excluded from allCraig Scott2019-02-211-1/+0
| | |/ | |/| | | | | | | | | | | | | | | | | | | | | | The original warning pre-dates support for install components. There are now legitimate scenarios where an install(TARGETS) command may list a target that is excluded from all, e.g. hierarchical projects that will never install the component such a target belongs to. Fixes: #18938
| * | Merge branch 'genex-GENEX_EVAL-fix-recursion' into release-3.14Brad King2019-02-132-4/+5
| |\ \ | | | | | | | | | | | | Merge-request: !2954
* | | | list: add sub-commands PREPEND, POP_BACK, POP_FRONTAlex Turbov2019-02-1913-0/+212
| |_|/ |/| |
* | | Merge topic 'genex-GENEX_EVAL-fix-recursion'Brad King2019-02-132-4/+5
|\ \ \ | | |/ | |/| | | | | | | | | | | | | | | | e429e9af42 genex: Fix erroneous handling of recursion for $<GENEX_EVAL:> Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: yrHeTaTeJlb <jjj.bo@yandex.ru> Merge-request: !2954
| * | genex: Fix erroneous handling of recursion for $<GENEX_EVAL:>Marc Chevrier2019-02-132-4/+5
| | | | | | | | | | | | Fixes: #18894