summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake
Commit message (Collapse)AuthorAgeFilesLines
* Tests: Teach RunCMake to optionally exclude the source dir argumentBrad King2019-04-101-1/+7
|
* 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
| * | | | 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