summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake
Commit message (Collapse)AuthorAgeFilesLines
* More tests for pkg_get_variableDan Kegel2019-03-204-0/+57
| | | | Issue: #15805
* 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
* | | Tests: Teach tests when to treat clang-cl as MSVCZsolt Parragi2019-02-112-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Disable the system include unused variable test in ExportImport when clang is in MSVC compatible mode. * Disable CxxDialect testcase when clang is in MSVC compatible mode, as it doesn't support `typeof`. * Teach Module.WriteCompilerDetectionHeader to treat clang-cl as MSVC. * Disable the SystemIncludeDirectories testcase within IncludeDirectories when clang is in MSVC compatible mode. * Disable the CMakeOnly.CheckCXXCompilerFlag testcase when clang is in MSVC compatible mode. * Treat clang-cl as MSVC in LinkOptions.cmake in the try_run and try_compile testcases.
* | | Merge topic 'cmake_parse_arguments-keywords_missing_values'Kyle Edwards2019-02-082-0/+134
|\ \ \ | |_|/ |/| | | | | | | | | | | | | | | | | 5228432b45 cmake_parse_arguments: add KEYWORDS_MISSING_VALUES 8e746db6e1 cmake_parse_arguments: Factor out part of implementation for re-use Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !2910
| * | cmake_parse_arguments: add KEYWORDS_MISSING_VALUESTorsten Robitzki2019-02-072-0/+134
| |/ | | | | | | | | | | | | Add KEYWORDS_MISSING_VALUES output variable to cmake_parse_arguments() to allow to detect keywords that received no values. Fixes: #18706
* | VS: Fix nowarn compiler option to accept warning numbers.Wil Stark2019-02-073-0/+79
|/ | | | | | Warning disables are transferred to the VS IDE `<NoWarn>` node. Fixes: #18878
* Merge topic '17870-iphone-friendly-cmake'Brad King2019-02-057-94/+73
|\ | | | | | | | | | | | | | | | | e8ee8cab97 Xcode: Completely disable code signing for compiler id detection 11da882a12 Apple: Introduce separate system name for iOS, tvOS, and watchOS 36cf44a7a3 Tests: Isolate RunCMake.XcodeProject per-device cases from host arch Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !2392
| * Apple: Introduce separate system name for iOS, tvOS, and watchOSGregor Jasny2019-02-047-64/+38
| | | | | | | | | | | | | | | | | | | | | | - Remove code signing requirements for non-macOS - Do not set deployment target for non-macOS - Build static library for compiler feature detection for non-macOS - Use framework to run CompilerId tests for watchOS - Port tests to new SDK handling - Add new Apple cross-compiling section to toolchain documentation Closes: #17870
| * Tests: Isolate RunCMake.XcodeProject per-device cases from host archBrad King2019-02-041-30/+35
| | | | | | | | | | Run all host cases before per-device cases. Do not expose the host `CMAKE_OSX_ARCHITECTURES` environment value to the per-device tests.
* | Merge topic 'vs-wince-deployment'Brad King2019-02-041-0/+8
|\ \ | | | | | | | | | | | | | | | | | | f5d72be57a VS: Fix deployment for WinCE projects Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !2907
| * | VS: Fix deployment for WinCE projectsWil Stark2019-02-011-0/+8
| | | | | | | | | | | | Fixes: #18868
* | | Merge topic 'set-env-warning'Brad King2019-02-043-0/+8
|\ \ \ | |/ / |/| | | | | | | | | | | | | | cb01b8c8ba set: warn of extra arguments after ENV value. Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !2903
| * | set: warn of extra arguments after ENV value.Taylor Holberton2019-02-013-0/+8
| | | | | | | | | | | | Fixes: #18842
* | | Merge topic 'implicit-incs-cleanup'Brad King2019-02-0117-1/+332
|\ \ \ | |/ / |/| | | | | | | | | | | | | | | | | | | | 1293ed8507 ParseImplicitIncludeInfo: keep implicit incl. consistent when rerunning cmake eaf53158f4 CrayPrgEnv/ParseImplicitIncludes: simplify for new implict include parser ef8f237686 ParseImplicitIncludeInfo: add SunPro Fortran and PGI compiler, Cray fix Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !2894