summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake
Commit message (Collapse)AuthorAgeFilesLines
* Merge topic 'CMakeParseImplicitLinkInfo-comma-separated'Brad King2019-08-29192-9/+594
|\ | | | | | | | | | | | | | | b5f20da94d CMakeParseImplicitLinkInfo supports comma separated link lines 2200bc068b Introduce a ParseImplicitLinkInfo test Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !3730
| * CMakeParseImplicitLinkInfo supports comma separated link linesRobert Maynard2019-08-288-6/+309
| | | | | | | | | | | | | | | | | | It is currently presumed that the linker will generate a space separated line. This is not the case for some compilers such as IBM XL where it can output space or comma separated. This is particularly apparent when IBM XL is used as the host compiler for CUDA as it generates a comma separated link line.
| * Introduce a ParseImplicitLinkInfo testRobert Maynard2019-08-28186-8/+290
| | | | | | | | | | By sharing the information used by ParseImplicitIncludeInfo we can also verify the parsing of implicit link info such as directories.
* | Merge topic 'precompile-headers'Brad King2019-08-2923-0/+298
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 8da78d4efe Precompile headers: Update documentation 5772930164 Precompile headers: Add unit tests 519606704e Precompile headers: Add support for Visual Studio generators 28be170fbc Precompile headers: Add support for Xcode generator b8626261e9 Precompile headers: Add methods to generate PCH sources 375d01c680 PCH: add example/test 9b6797e71d PCH: add target_precompile_headers command 0467a2f91b PCH: add PRECOMPILE_HEADERS to special properties Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: Daniel Pfeifer <daniel@pfeifer-mail.de> Acked-by: Ivan171 <heavenandhell171@gmail.com> Acked-by: Stanislav Ershov <digital.stream.of.mind@gmail.com> Acked-by: Steve Mokris <smokris@softpixel.com> Acked-by: Evgeniy Dushistov <dushistov@mail.ru> Acked-by: Danila Malyutin <flashmozzg@gmail.com> Acked-by: Viktor Kirilov <vik.kirilov@gmail.com> Acked-by: Lucas Zhao <zhaopf6@163.com> Merge-request: !3553
| * | Precompile headers: Add unit testsCristian Adam2019-08-2823-0/+298
| | |
* | | Merge topic 'find-no-name'Brad King2019-08-293-0/+4
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | 84e33e6da4 Merge branch 'backport-find-no-name' into find-no-name 4c8760c9fb find_path: Fix crash on empty old-style list of names Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !3751
| * \ \ Merge branch 'backport-find-no-name' into find-no-nameBrad King2019-08-283-0/+4
| |\ \ \
| | * | | find_path: Fix crash on empty old-style list of namesBrad King2019-08-283-0/+4
| | | | | | | | | | | | | | | | | | | | Fixes: #19651
* | | | | Merge topic 'vs-ConfigurationType-genex'Brad King2019-08-282-2/+2
|\ \ \ \ \ | |/ / / / |/| | | | | | | | | | | | | | | | | | | | | | | | 8909a450a6 VS: Add support for generator expressions to VS_CONFIGURATION_TYPE Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !3746
| * | | | VS: Add support for generator expressions to VS_CONFIGURATION_TYPEDaniel Eiband2019-08-262-2/+2
| | |_|/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | | Generator expressions in target property VS_CONFIGURATION_TYPE might be used to set the ConfigurationType to Utility for certain configurations to not build the target while still linking to the target in other configurations. Fixes: #19613
* | | | Merge topic 'cmake-initial-cache-dirs'Brad King2019-08-277-0/+35
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 4ca0526f8a cmake: Pass -S and -B into PreLoad.cmake and -C scripts Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !3709
| * | | | cmake: Pass -S and -B into PreLoad.cmake and -C scriptsPeter Waller2019-08-277-0/+35
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Before this, it was not possible to see what the source or build directories were set to on the command line. Fixes: #19619
* | | | | Xcode: Make iOS tests compatible with Xcode 11Gregor Jasny2019-08-264-0/+4
| |_|_|/ |/| | |
* | | | Merge topic 'group_not_track'Brad King2019-08-2617-6/+38
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2a71a0390c ctest: rename TRACK to GROUP Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: Zack Galbreath <zack.galbreath@kitware.com> Merge-request: !3707
| * | | | ctest: rename TRACK to GROUPZack Galbreath2019-08-2217-6/+38
| |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Update command-line options, script variables, and documentation to use the term "group" instead of "track". The old terms are still available for now, but they are now undocumented. This makes our terminology more consistent with CDash. The goal of this change is to make it more clear to our users how CTest and CDash interact with each other.
* | | | Merge topic 'warnings_skip_color'Brad King2019-08-265-2/+23
|\ \ \ \ | |_|/ / |/| | | | | | | | | | | | | | | | | | | 2079267959 ctest_build: ignore ANSI color Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !3702
| * | | ctest_build: ignore ANSI colorZack Galbreath2019-08-225-2/+23
| | | | | | | | | | | | | | | | Ignore ANSI color when scraping logs for errors and warnings
* | | | Merge topic 'ctest-json-REQUIRED_FILES'Brad King2019-08-232-4/+18
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 5778880d20 CTest: Fix --show-only=json-v1 output with REQUIRED_FILES property Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !3719
| * | | | CTest: Fix --show-only=json-v1 output with REQUIRED_FILES propertyBrad King2019-08-222-4/+18
| | |_|/ | |/| | | | | | | | | | Fixes: #19629
| * | | Merge branch 'fileapi-install-generators' into release-3.15Brad King2019-08-022-1/+36
| |\ \ \ | | | | | | | | | | | | | | | Merge-request: !3639
* | \ \ \ Merge topic 'source_group-tests'Brad King2019-08-219-26/+93
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | bb6e95ca6d source_group: Improved generated filters tests Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !3675
| * | | | | source_group: Improved generated filters testsMateusz Janek2019-08-169-26/+93
| | |_|/ / | |/| | |
* | | | | Merge topic 'double-export-error-message-install'Brad King2019-08-212-2/+2
|\ \ \ \ \ | |_|_|_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | d17580909f cmExportInstallFileGenerator: improve error message a18100898a cmInstallExportGenerator: add a method for the file destination Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !3703
| * | | | cmExportInstallFileGenerator: improve error messageBen Boeckel2019-08-202-2/+2
| |/ / / | | | | | | | | | | | | | | | | | | | | | | | | Following commit 49cfd390 (cmExportBuildFileGenerator: improve error message, 2019-06-26), improve the error message related to installed export sets by referencing the files which contain the exported target ambiguously.
* | | | Merge topic 'trace-redirect'Brad King2019-08-207-0/+24
|\ \ \ \ | |/ / / |/| | | | | | | | | | | | | | | | | | | 3c94069660 Add --trace-redirect parameter to redirect trace output to a file Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !3645
| * | | Add --trace-redirect parameter to redirect trace output to a fileIgor Ivanov2019-08-107-0/+24
| | | |
* | | | FPHSA: Remove extra space in module components reportSylvain Joubert2019-08-064-4/+4
|/ / /
* | | Merge topic 'fileapi-install-generators'Brad King2019-08-052-1/+36
|\ \ \ | | |/ | |/| | | | | | | | | | | | | d70a0f8681 fileapi: Fix codemodel target install destination for cross-dir rules Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !3639
| * | fileapi: Fix codemodel target install destination for cross-dir rulesBrad King2019-07-312-1/+36
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Since commit e89ad0f94e (install: Allow installing targets created in another directory, 2018-06-18, v3.13.0-rc1~407^2) we support calling `install(TARGETS)` for targets created in another directory. However, install generators are associated with the directory in which the call to `install()` appears. This may not be the same directory in which the target is defined. Record in each target the list of install generators it has. Fixes: #19546
* | | Merge topic 'vs-spectre-off'Brad King2019-07-313-0/+42
|\ \ \ | | |/ | |/| | | | | | | | | | | | | f9b7c660d7 VS: Fix mapping of `-Qspectre-` flag Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !3629
| * | VS: Fix mapping of `-Qspectre-` flagBrad King2019-07-303-0/+42
| |/ | | | | | | | | | | | | | | | | | | | | | | The mapping for this flag was added by commit 43aa632f57 (VS: Populate `-Qspectre-` flag table entry for v142, 2019-01-24, v3.14.0-rc1~74^2~7). However, it did not do anything because the special logic added by commit bb60ed6e72 (VS: Add flag table entry for -Qspectre, 2018-10-08, v3.13.0-rc1~4^2) to move the `SpectreMitigation` element from `ClCompile` to the top level only handled the presence of the setting and not its value. Extend the special logic to carry the value too. Fixes: #19535
| * Merge branch 'makefile-depend-relative-include' into release-3.15Brad King2019-07-255-1/+35
| |\ | | | | | | | | | Merge-request: !3599
| * \ Merge branch 'backport-clang-gnulike-support' into release-3.15Brad King2019-07-241-5/+0
| |\ \ | | | | | | | | | | | | Merge-request: !3592
* | \ \ Merge topic 'android-ndk-r19'Brad King2019-07-2911-30/+34
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 97bca2f9fa Android: Use unified toolchain in NDK r19+ 19f36c5fb2 Android: Update test to not require GCC compiler to exist in NDK f3e32ddae9 Android: Re-order system initialization to select sysroot last 9a0720b819 Android: Clarify name of internal variable for arch triple 4e6c58d937 Android: Select NDK host tag while determining system Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !3612
| * | | | Android: Use unified toolchain in NDK r19+Brad King2019-07-2610-12/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The NDK build system now uses only a single toolchain in <ndk>/toolchains/llvm/prebuilt/<host> Its compilers are always `bin/{clang,clang++}` and its binutils are always `bin/<triple>-*`. It is a standalone toolchain: * The Anrdoid API level is specified at the end of `--target=`. * The standard library may be specified via `-stdlib=`. * No need to pass system includes or libraries explicitly. * No need to pass `--sysroot` or `-gcc-toolchain`. Teach CMake to recognize NDK versions that have a unified toolchain with its own sysroot and use the above approach. Fixes: #18739
| * | | | Android: Update test to not require GCC compiler to exist in NDKBrad King2019-07-261-18/+19
| | | | |
* | | | | Tests: Remove stray source dir modification in RunCMake.find_programBrad King2019-07-261-1/+0
|/ / / / | | | | | | | | | | | | | | | | | | | | Since commit c76c1ea208 (find_program: Consider CWD only for paths with separator, 2018-05-31, v3.13.0-rc1~413^2) this test has created a directory in the source tree unnecessarily. Remove it.
* | | | Merge topic 'makefile-depend-relative-include'Brad King2019-07-255-1/+35
|\ \ \ \ | | |_|/ | |/| | | | | | | | | | | | | | | | | | d46bac5d38 Makefile: Fix regression in dependencies on relative includes Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !3599
| * | | Makefile: Fix regression in dependencies on relative includesBrad King2019-07-245-1/+35
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Since commit a13a5c948e (Replace use of CollapseCombinedPath with CollapseFullPath, 2019-03-19, v3.15.0-rc1~361^2~1), one code path now calls `CollapseFullPath` with a base path that may be relative. Backport KWSys commit c6f8e24a3 (SystemTools: Fix CollapseFullPath with relative base path, 2019-07-24) to handle such base paths. This case occurs when a build tree is placed in a directory inside a source tree such that CMake is willing to generate a relative path from the build tree to the source tree. Add a test covering this case. Fixes: #19507
* | | | Merge topic 'clang-gnulike-support'Brad King2019-07-251-5/+0
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | a4657ef670 Merge branch 'backport-clang-gnulike-support' into clang-gnulike-support 161b33f12b Help/guide/tutorial: Revert "require C++14 for the Tutorial" 4f15a6a5c2 Tests: Revert "require C++14 for the Tutorial" 5cfc39127e Merge branch 'backport-clang-gnulike-support' into clang-gnulike-support d50b31be35 Clang: For MSVC ABI do not use modes older than C++14 Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !3592
| * \ \ \ Merge branch 'backport-clang-gnulike-support' into clang-gnulike-supportBrad King2019-07-241-5/+0
| |\ \ \ \ | | | |_|/ | | |/| |
| | * | | Clang: For MSVC ABI do not use modes older than C++14Brad King2019-07-241-5/+0
| | |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Since commit d44c0db0b2 (clang: setup correct configuration in gnu mode, 2019-02-20, v3.15.0-rc1~41^2~5) we support the GNU-like Clang that targets the MSVC ABI. However, Clang cannot compile with the MSVC standard library unless it runs in a mode aware of C++14 (since MSVC itself does not even have a lower mode). When `CMAKE_CXX_STANDARD` is set to 98 or 11, use C++14 anyway. Since Clang's default mode is aware of C++14, another option is to not add any flags for 98 or 11. However, if a future Clang version ever defaults to a higher C++ standard, setting the standard to 98 or 11 should at least not use a mode higher than 14. Also revert test updates from commit 4819ff9647 (Tests: fix failures with gnu mode clang on windows, 2019-03-21, v3.15.0-rc1~41^2~3) that were meant to work around the standard selection problem. Fixes: #19496
* | | | Merge topic 'find_pkg_use_new_global_controls'Brad King2019-07-246-0/+78
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 609fe39043 FindPackage: Support `NO_[]_PATH` global call options ff29c92df6 Tests: find_file restore PATH env variable after test runs Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !3590
| * | | | FindPackage: Support `NO_[]_PATH` global call optionsRobert Maynard2019-07-225-0/+76
| | | | |
| * | | | Tests: find_file restore PATH env variable after test runsRobert Maynard2019-07-221-0/+2
| | | | |
* | | | | Merge topic 'math_exp_not'Brad King2019-07-241-2/+2
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | d427f12b73 math(EXPR): Implement ~(exp_NOT) expression as documented Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !3582
| * | | | | math(EXPR): Implement ~(exp_NOT) expression as documentedGabor Bencze2019-07-231-2/+2
| | |/ / / | |/| | | | | | | | | | | | | Fixes: #19252
* | | | | Merge topic 'fix-emulator-arguments'Brad King2019-07-241-0/+3
|\ \ \ \ \ | |/ / / / |/| | | / | | |_|/ | |/| | | | | | | | | | bf6f5467a0 Fix allocation in CROSSCOMPILING_EMULATOR evaluation Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !3591
| * | | Fix allocation in CROSSCOMPILING_EMULATOR evaluationMarek Antoniak2019-07-231-0/+3
| | |/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In commit fec441ec17 (Teach CROSSCOMPILING_EMULATOR to support arguments, 2019-05-30, v3.15.0-rc1~6^2) the new member `cmCustomCommandGenerator::EmulatorsWithArguments` was not initialized to the proper size. Fix this and add a test case covering the crash that could occur with multiple commands where an emulator appears only in a later command. Fixes: #19500 Co-Author: Brad King <brad.king@kitware.com>
* | | Merge topic 'make-imported-targets-more-equal'Brad King2019-07-233-1/+13
|\ \ \ | |_|/ |/| | | | | | | | | | | | | | | | | 680a3c63bb target_*: Allow setting INTERFACE properties of UNKNOWN IMPORTED targets 62b5d1e4ad cmTargetPropCommandBase: Order target type condition by order in enum Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !3581