summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake
Commit message (Collapse)AuthorAgeFilesLines
* Merge topic 'sourceFile-new-properties'Brad King2018-01-2514-0/+47
|\ | | | | | | | | | | | | | | | | | | 04483111 sourceFile properties: add property INCLUDE_DIRECTORIES 3073bd1f VisualStudio generators: refactoring 78b1c2e0 sourceFile properties: add property COMPILE_OPTIONS 3f935e69 LocalGenerator: refactoring Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !1596
| * sourceFile properties: add property INCLUDE_DIRECTORIESMarc Chevrier2018-01-2414-0/+47
| |
* | Merge topic 'fix-include_regular_expression-subdir'Brad King2018-01-254-0/+9
|\ \ | | | | | | | | | | | | | | | | | | 2d64f9f0 include_regular_expression: Fix propagation to subdirectories Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !1690
| * | include_regular_expression: Fix propagation to subdirectoriesBrad King2018-01-244-0/+9
| |/ | | | | | | | | | | | | | | | | | | | | | | | | | | Refactoring in commit v3.4.0-rc1~321^2 (cmMakefile: Remove special handling of INCLUDE_REGULAR_EXPRESSION, 2015-04-04) accidentally broke propagation of the include regex to subdirectories. Refactoring in commit v3.5.0-rc1~319^2~1 (cmState: Initialize properties immediately, 2015-10-07) moved maintenance of this value from `cmMakefile` to `cmStateSnapshot`. Restore propagation of the `INCLUDE_REGULAR_EXPRESSION` to subdirectories and add a test to cover it. Fixes: #17676
* | GenerateExportHeader: add release notes, tests for include guard changesKyle Edwards2018-01-2319-14/+46
|/
* Merge topic 'cache-truncate-newlines'Brad King2018-01-197-0/+36
|\ | | | | | | | | | | | | | | c42b377c cmCacheManager: Test and document newline truncation behavior a9c48307 cmCacheManager: Truncate values containing newlines Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !1652
| * cmCacheManager: Test and document newline truncation behaviorKyle Edwards2018-01-157-0/+36
| |
* | Merge topic 'extend-compile-language-genex'Brad King2018-01-1616-101/+0
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 506fda1c Genex: Enable COMPILE_LANGUAGE for INCLUDE_DIRECTORIES with VS and Xcode c2f79c98 Genex: Enable COMPILE_LANGUAGE for COMPILE_DEFINITIONS with VS and Xcode 0795d25b cmVisualStudio10TargetGenerator: Factor out include dir computation 1ab4d186 cmLocalVisualStudio7Generator: Clarify variable name of compiled language 07e1a743 cmLocalVisualStudio7Generator: Clarify condition for target that compiles Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !1657
| * | Genex: Enable COMPILE_LANGUAGE for INCLUDE_DIRECTORIES with VS and XcodeBrad King2018-01-128-43/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The set of compile flags used for a target's C and C++ sources is based on the linker language. By default this is always the C++ flags if any C++ sources appear in the target, and otherwise the C flags. Therefore we can define the `COMPILE_LANGUAGE` generator expression in `INCLUDE_DIRECTORIES` to match the selected language. This is not exactly the same as for other generators, but is the best VS and Xcode can do. It is also sufficient for many use cases since the set of include directories for C and C++ is frequently similar but may be distinct from those for other languages like CUDA. Fixes: #17435
| * | Genex: Enable COMPILE_LANGUAGE for COMPILE_DEFINITIONS with VS and XcodeBrad King2018-01-1211-62/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The set of compile flags used for a target's C and C++ sources is based on the linker language. By default this is always the C++ flags if any C++ sources appear in the target, and otherwise the C flags. Therefore we can define the `COMPILE_LANGUAGE` generator expression in `COMPILE_DEFINITIONS` to match the selected language. This is not exactly the same as for other generators, but is the best VS and Xcode can do. It is also sufficient for many use cases since the set of definitions for C and C++ is frequently similar but may be distinct from those for other languages like CUDA. Issue: #17435
* | | GNU: Use -fvisibility on AIX when supportedBrad King2018-01-121-1/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | Revise the logic from commit v3.7.0-rc1~173^2~2 (GNU: Do not use -fvisibility on AIX or HP-UX, 2016-09-03) to add a version check. The GCC 7 release notes [1] state that visibility support has been added for AIX 7.1 and above. [1] https://gcc.gnu.org/gcc-7/changes.html
* | | Tests: Remove redundant code from RunCMake.GenerateExportHeader caseBrad King2018-01-122-4/+0
|/ / | | | | | | | | Drop extra `add_compiler_export_flags` calls from subdirectories because it is already called in the top-level directory before entering them.
* | Merge topic 'add_cuda_to_source_regex'Craig Scott2018-01-091-2/+2
|\ \ | |/ |/| | | | | | | | | | | 81868e6b CUDA: Add cu as default source file extension Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: Brad King <brad.king@kitware.com> Merge-request: !1629
| * CUDA: Add cu as default source file extensionRobert Maynard2018-01-081-2/+2
| |
* | Merge topic 'use_generator_is_multi_config'Brad King2018-01-0817-15/+31
|\ \ | | | | | | | | | | | | | | | | | | | | | 3c413e2a GENERATOR_IS_MULTI_CONFIG: Use for multi-config checks in Modules c267ea1c GENERATOR_IS_MULTI_CONFIG: Use for multi-config checks in Tests Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !1627
| * | GENERATOR_IS_MULTI_CONFIG: Use for multi-config checks in TestsCraig Scott2017-12-2917-15/+31
| | |
* | | Merge topic 'execute_process_UTF8_keyword'Brad King2018-01-082-0/+2
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | 8caec41e execute_process: Allow UTF-8 as a synonym for the UTF8 keyword Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: Ben Boeckel <ben.boeckel@kitware.com> Merge-request: !1623
| * | | execute_process: Allow UTF-8 as a synonym for the UTF8 keywordCraig Scott2017-12-272-0/+2
| |/ / | | | | | | | | | | | | | | | | | | | | | UTF-8 is the proper naming according to the UTF-8 RFC and is also the name used for a similar keyword in the file() command. This commit brings (backward compatible) consistency to the keyword names and allows the standard UTF-8 name to be used with execute_process(). The old UTF8 keyword is still supported.
* | | Merge topic '17431-iphone-deployment-target'Brad King2018-01-087-0/+88
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | 4017bf40 Darwin: Emit deployment target that matches the SDK 8f4663ff Xcode: rename embedded SDK query function Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !1447
| * | | Darwin: Emit deployment target that matches the SDKGregor Jasny2017-12-227-0/+88
| |/ / | | | | | | | | | Closes: #17431
* | | Various typo fixesLuz Paz2018-01-034-4/+4
|/ / | | | | | | Some are user-facing. Others are source comments.
* | FindPkgConfig: Make IMPORTED_TARGET test verify NO...PATH properlyCraig Scott2017-12-161-0/+61
|/
* Genex: Per-source $<COMPILE_LANGUAGE:...> supportMarc Chevrier2017-12-135-0/+27
| | | | Fixes: #17542
* Merge topic 'cpack-rpm-check-executable-flags'Brad King2017-12-075-7/+15
|\ | | | | | | | | | | | | a2031d3a CPack/RPM: check executable flags for debuginfo packages Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !1565
| * CPack/RPM: check executable flags for debuginfo packagesDomen Vrankar2017-12-065-7/+15
| | | | | | | | | | Debuginfo packages can not be created from programs and shared libraries that do not have execute permissions.
* | Merge topic 'externalproject_download_dir'Brad King2017-12-073-7/+60
|\ \ | | | | | | | | | | | | | | | | | | b8b87489 ExternalProject: Support substituting <DOWNLOAD_DIR> Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !1537
| * | ExternalProject: Support substituting <DOWNLOAD_DIR>Craig Scott2017-12-063-7/+60
| | |
* | | Merge topic 'gtest-discovery-timeout'Brad King2017-12-077-0/+53
|\ \ \ | |_|/ |/| | | | | | | | | | | | | | | | | | | | 935848a8 GoogleTest: Add test for missing test executable 29731d89 GoogleTest: Add timeout to discovery e99e3982 GoogleTest: Improve gtest_discover_tests messages Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !1534
| * | GoogleTest: Add test for missing test executableMatthew Woehlke2017-12-063-0/+10
| | | | | | | | | | | | | | | | | | | | | Add a test to verify expected behavior when a test executable on which gtest_discover_tests is invoked was not built. (The test for the newly added timeout conveniently sets up this situation, so this new test was almost trivial to add.)
| * | GoogleTest: Add timeout to discoveryMatthew Woehlke2017-12-065-0/+43
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add a TIMEOUT option to gtest_discover_tests. This provides a work-around in case a test goes out to lunch, rather than causing the build to simply hang. (Although this is still a problem with the user's project, hanging the build is not cool, especially in the case of automatically running CI builds. It is much preferred that the build should actively fail in this case, and it is trivially easy for us to implement that.)
* | | Add generator expression support to per-source COMPILE_DEFINITIONSMarc Chevrier2017-12-054-0/+13
| | | | | | | | | | | | | | | | | | This allows users to specify different genex-based compile definitions for each file in a target. Fixes: #17508
* | | Merge topic 'update-cpplint'Brad King2017-12-054-4/+4
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | bfcc2034 Update cpplint support to return 0 and mark warnings for CDash. Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !1544
| * | | Update cpplint support to return 0 and mark warnings for CDash.Bill Hoffman2017-12-014-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This commit makes cpplint act like the other compiler mirroring tools. It will always return 0 even if it reports warnings and will only return non zero if there is a problem running the command. In addition, it will now add some extra text to allow CTest to recognize the warnings and report them correctly to CDash.
* | | | Merge topic 'csharp_project_without_sources'Brad King2017-12-043-0/+13
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 8e654a37 VS: Enable generation of CSharp projects without initial .cs files Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !1521
| * | | | VS: Enable generation of CSharp projects without initial .cs filesMichael Stürmer2017-11-293-0/+13
| | | | | | | | | | | | | | | | | | | | fixes #17388
* | | | | Merge topic 'simplify_target_link_libraries'Brad King2017-12-012-4/+4
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 8112059e target_link_libraries: Simplify implementation and add comments. b0e2f141 target_link_libraries: Slightly fix some error-messages. 85457b63 target_link_libraries: Return earlier on some error. Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !1531
| * | | | | target_link_libraries: Slightly fix some error-messages.Deniz Bahadir2017-11-292-4/+4
| | |/ / / | |/| | | | | | | | | | | | | | | | | | Some error-messages are slightly adjusted to better tell what invocation would be correct instead. Tests are adjusted accordingly.
* | | | | Merge topic 'whitelist-more-interface-properties'Brad King2017-11-301-0/+10
|\ \ \ \ \ | |_|_|_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | fb3c5bfd cmTargetPropertyComputer: whitelist custom properties Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !1515
| * | | | cmTargetPropertyComputer: whitelist custom propertiesBen Boeckel2017-11-211-0/+10
| | | | | | | | | | | | | | | | | | | | | | | | | CMake's properties will never begin with an underscore or a lowercase letter, so allow them to be set by projects.
* | | | | Merge topic 'check_fixtures_before_exe_existence'Craig Scott2017-11-291-1/+5
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | fbe91dba CTest: Check failed fixture dependencies before test command and args Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: Brad King <brad.king@kitware.com> Merge-request: !1526
| * | | | | CTest: Check failed fixture dependencies before test command and argsCraig Scott2017-11-281-1/+5
| | |_|/ / | |/| | |
* | | | | Merge topic 'CheckIncludeFiles-language-CXX'Brad King2017-11-2912-0/+54
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | b31d5e1d CheckIncludeFiles: improve warning for missing argument 1f1c2a9f CheckIncludeFiles: clean up documentation of new features c8609992 Help: Add notes for topic 'CheckIncludeFiles-language-CXX' ea1bb902 CheckIncludeFiles: add unit tests 7669695a CheckIncludeFiles: extend to allow a LANGUAGE argument Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !1464
| * | | | | CheckIncludeFiles: improve warning for missing argumentDavid Adam2017-11-241-2/+2
| | | | | |
| * | | | | CheckIncludeFiles: add unit testsDavid Adam2017-11-1112-0/+54
| | | | | |
* | | | | | Merge topic 'fortran-compiler-launcher'Brad King2017-11-297-0/+17
|\ \ \ \ \ \ | |_|_|_|/ / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | f19c70c3 Fortran: Add option to run the compiler through launcher tools Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !1517
| * | | | | Fortran: Add option to run the compiler through launcher toolsBrad King2017-11-217-0/+17
| | |/ / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add a `Fortran_COMPILER_LAUNCHER` target property like those added for C and CXX by commit v3.4.0-rc1~450^2 (Add options to launch the compiler through tools like ccache or distcc, 2015-06-04) and CUDA by commit v3.10.0-rc1~531^2 (CUDA: Add option to run the compiler through launcher tools, 2017-06-09). Fixes: #17499
* | | | | Merge topic 'extend-compile-language-genex'Brad King2017-11-2716-46/+16
|\ \ \ \ \ | |/ / / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2ae880fa Genex: Enable COMPILE_LANGUAGE for COMPILE_OPTIONS with Visual Studio 2b7d59f3 Genex: Enable COMPILE_LANGUAGE for file(GENERATE) with Visual Studio 0f6f7c8a Genex: Fix COMPILE_LANGUAGE messages to allow file(GENERATE) with Xcode c5a82d0f Tests: Decouple COMPILE_LANGUAGE in file(GENERATE) from COMPILE_OPTIONS 25773650 Tests: Remove unnecessary result files from RunCMake.File_Generate Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: Jason Juang <jasjuang@gmail.com> Merge-request: !1511
| * | | | Genex: Enable COMPILE_LANGUAGE for COMPILE_OPTIONS with Visual StudioBrad King2017-11-206-23/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Since commit v3.9.0-rc4~3^2~1 (VS: Fix target_compile_options for CUDA, 2017-06-21), the evaluation of `COMPILE_LANGUAGE` receives the proper language. The set of compile flags used for a target's C and C++ sources is based on the linker language. By default this is always the C++ flags if any C++ sources appear in the target, and otherwise the C flags. Therefore we can define the `COMPILE_LANGUAGE` generator expression in `COMPILE_OPTIONS` to match the selected language. This is not exactly the same as for other generators, but is the best VS can do. It is also sufficient for many use cases since the set of allowed flags for C and C++ is almost the same in Visual Studio. Furthermore, since the VS generator moves many of the flags to declarative `.vcxproj` elements, it will automatically avoid passing C++ flags for C sources. Issue: #17435
| * | | | Genex: Enable COMPILE_LANGUAGE for file(GENERATE) with Visual StudioBrad King2017-11-174-12/+13
| | | | | | | | | | | | | | | | | | | | Issue: #17435
| * | | | Genex: Fix COMPILE_LANGUAGE messages to allow file(GENERATE) with XcodeBrad King2017-11-172-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When rejecting the `COMPILE_LANGUAGE` generator expression on include directories and compile definitions with Xcode, add `file(GENERATE)` to the allowed set in the message. It is allowed and already covered by the `RunCMake.File_Generate` test `COMPILE_LANGUAGE-genex` case.