summaryrefslogtreecommitdiffstats
path: root/Tests
Commit message (Collapse)AuthorAgeFilesLines
* Precompile headers: Treat headers as relative to current source directoryCristian Adam2019-09-236-13/+22
| | | | | | | Teach `target_precompile_headers` to treat relative paths the same way as `target_sources`. Fixes: #19733
* Merge topic 'cmake-system-headers'Brad King2019-09-205-7/+7
|\ | | | | | | | | | | | | | | 4a08690ccf cmstd: Extend header <cm/iterator> c688b401d3 cmstd: Modernize CMake system headers Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !3776
| * cmstd: Modernize CMake system headersMarc Chevrier2019-09-205-7/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Provide a standardized way to handle the C++ "standard" headers customized to be used with current CMake C++ standard constraints. Offer under directory `cm` headers which can be used as direct replacements of the standard ones. For example: #include <cm/string_view> can be used safely for CMake development in place of the `<string_view>` standard header. Fixes: #19491
* | Merge topic 'split-custom-command-creation'Brad King2019-09-2014-0/+42
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 0e1faa28cb cmMakefile: Separate custom command setup from actual creation 56c204e8eb cmMakefile: Refactor AddCustomCommandOldStyle to be delay friendly 3061dc6ac9 add_custom_command: Add tests for rejecting literal quotes in commands e893ab94ba cmMakefile: Validate command line for all custom commands f1e846fdde cmMakefile: Extract custom command validation method 4926ab2454 cmMakefile: Create all generated byproducts as known sources Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !3822
| * | add_custom_command: Add tests for rejecting literal quotes in commandsDaniel Eiband2019-09-1714-0/+42
| | |
* | | Merge topic 'fileapiLinkPathAndLinkDirBacktraces'Brad King2019-09-202-2/+39
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 4d6334824d fileapi: add backtraces for LINK_PATH and LINK_DIRECTORIES 5bd65dff7a cmLocalGenerator: Add OutputLinkLibraries overload with backtraces 5d39e792ae cmGeneratorTarget: Store backtrace for target LINK_DIRECTORIES property 7da17ef797 cmLinkLineComputer: Add ComputeLinkLibraries overload with backtraces d4d0dd0f6a cmLinkLineComputer: Add ComputeLinkLibs overload with backtraces 0ac9dcb807 cmLinkLineComputer: Add ComputeLinkPath overload with backtraces 0c6468178a cmComputeLinkInformation: Add GetDirectoriesWithBacktraces a209b31d0d cmComputeLinkInformation: Add AppendValues with backtraces Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !3805
| * | | fileapi: add backtraces for LINK_PATH and LINK_DIRECTORIESJustin Goshi2019-09-182-2/+39
| | | |
* | | | Merge topic 'update-kwsys'Brad King2019-09-205-20/+323
|\ \ \ \ | |_|_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | c578caa68b Tests: Decouple Plugin test from KWSys 56879273dc Merge branch 'upstream-KWSys' into update-kwsys 3327c0402a KWSys 2019-09-18 (c6bc38c1) Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !3828
| * | | Tests: Decouple Plugin test from KWSysBrad King2019-09-195-20/+323
| | |/ | |/| | | | | | | | | | | | | KWSys now requires C++11 but we want this test to be able to run as C++98. Copy the KWSys DynamicLoader implementation (with original notice headers and license reference) and update it to work alone.
* | | Merge topic 'autogen_path_prefix'Brad King2019-09-1998-896/+1092
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | cc0900d9cd Help: Add release notes for AUTOMOC_PATH_PREFIX 692d8e3492 Help: Add documentation for AUTOMOC_PATH_PREFIX 1933ade9f1 Tests: At QtAutogen.MocIncludeSymlink test 706d9738a6 Tests: Merge QtAutogen.MocIncludeStrict and MocIncludeRelaxed d018d27c10 Autogen: Add moc path prefix generation (AUTOMOC_PATH_PREFIX) 77983c8147 Autogen: Add IsHeader flag to SourceFileT class f9e5441eb4 Autogen: Abbreviate file paths in messages 51676cf655 Autogen: Split JobEvalCacheT job into separate moc and uic jobs ... Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !3818
| * | | Tests: At QtAutogen.MocIncludeSymlink testSebastian Holtermann2019-09-182-0/+81
| | | |
| * | | Tests: Merge QtAutogen.MocIncludeStrict and MocIncludeRelaxedSebastian Holtermann2019-09-1897-896/+1011
| | | |
* | | | Merge topic 'FindGnuTLS-target'Brad King2019-09-194-0/+50
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 44e8b8f1f2 FindGnuTLS: add target GnuTLS::GnuTLS Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !3825
| * | | | FindGnuTLS: add target GnuTLS::GnuTLSDavid Callu2019-09-184-0/+50
| | | | | | | | | | | | | | | | | | | | Also add a test case for the module.
* | | | | Merge topic 'shared-pch'Brad King2019-09-187-1/+49
|\ \ \ \ \ | |_|_|/ / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 729d997f10 Precompile Headers: Add REUSE_FROM signature Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: Rickard Englund <rickard@r-englund.com> Acked-by: Viktor Kirilov <vik.kirilov@gmail.com> Merge-request: !3762
| * | | | Precompile Headers: Add REUSE_FROM signatureCristian Adam2019-09-177-1/+49
| | |/ / | |/| | | | | | | | | | | | | | | | | | | | | | Add the ability to share precompiled headers artifacts between targets. Fixes: #19659
* | | | Merge topic 'byproduct-collapse-full-path'Brad King2019-09-175-5/+31
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 3b409643bd Byproducts: Add test for collapsing of full paths in byproducts 445ff5ccdf Byproducts: collapse full paths of custom target byproducts Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !3804
| * | | | Byproducts: Add test for collapsing of full paths in byproductsDaniel Eiband2019-09-165-5/+31
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add test for collapsing of full paths in byproducts and additional tests for the GENERATED source file properties set by add_custom_command and add_custom_target with relative paths.
* | | | | Merge topic 'allow-pkg-config-missing-libraries'Brad King2019-09-171-33/+16
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 28cb86d796 FindPkgConfig: Allow libraries that can't be found with their full path Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: Rolf Eike Beer <eike@sf-mail.de> Merge-request: !3781
| * | | | | FindPkgConfig: Allow libraries that can't be found with their full pathChuck Atkins2019-09-161-33/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | pkg-config's .pc files can sometimes provide libraries that are visible to the linker but not present in CMake's known search paths. In the case where CMake can find some, but not all of the library dependencies provided in a .pc file, this allows them to be passed through as "-lfoo" when the full path can't be found. This also removes the test failure cases that occured because of this scenario and adjsuts the remaining tests to account for not-found libraries
* | | | | | FindEnvMod: Remove unreliable test caseChuck Atkins2019-09-161-9/+7
| |_|/ / / |/| | | | | | | | | | | | | | | | | | | | | | | | There's no way to know that loading an arbitrary module doesn't pull in extra dependent modules so the test case asserting that exactly one module was loaded isn't valid.
* | | | | Merge topic 'tidy-deprecated-headers'Brad King2019-09-161-1/+1
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | f30523d090 clang-tidy: modernize-deprecated-headers Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !3792
| * | | | | clang-tidy: modernize-deprecated-headersRegina Pfeifer2019-09-161-1/+1
| | |_|/ / | |/| | |
* | | | | Merge topic 'add_custom_command-genex-slash'Brad King2019-09-162-4/+25
|\ \ \ \ \ | |_|_|/ / |/| | | | | | | | | | | | | | | | | | | | | | | | c16641607f add_custom_command: Delay slash conversion until after genex evaluation Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !3791
| * | | | add_custom_command: Delay slash conversion until after genex evaluationSebastian Lipponer2019-09-132-4/+25
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Generator expressions may contain or produce backslashes. Fixes: #19553
* | | | | Depend: Add test for target-level dependencies via byproductsDaniel Eiband2019-09-123-7/+36
| |/ / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | Add test for target-level dependency of custom target to POST_BUILD event via byproduct. Remove explicit dependencies in test which are no longe required due to introduced dependencies on build events via byproducts. Issue: #19005
* | | | Merge topic 'modernize-use-auto'Brad King2019-09-121-1/+1
|\ \ \ \ | |_|_|/ |/| | | | | | | | | | | | | | | | | | | d25a5a7ec9 clang-tidy: modernize-use-auto Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !3783
| * | | clang-tidy: modernize-use-autoRegina Pfeifer2019-09-101-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | Set the MinTypeNameLength option to an impossibly high value in order to limit the diagnostics to iterators. Leave new expressions and cast expressions for later.
* | | | Merge topic 'fileapiAddMoreBacktraces'Brad King2019-09-112-4/+129
|\ \ \ \ | |/ / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 30006e199b fileapi: add backtraces for compile/link options 291c83f063 cmLocalGenerator: Add GetTargetCompileFlags overload with backtraces 8e973b8e8d cmLocalGenerator: Add GetTargetFlags overload with backtraces 4d5bbb7704 cmLocalGenerator: Add GetStaticLibraryFlags overload with backtraces 1f6a436bf4 cmLocalGenerator: Add AddCompileOptions overload with backtraces 5355a60fd0 cmLocalGenerator: Add AppendCompileOptions overload with backtraces a20d2c85d0 cmLocalGenerator: Add AppendFlags overload with backtraces b13207910e cmLocalGenerator: Clarify AddCompileOptions filter logic ... Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !3775
| * | | fileapi: add backtraces for compile/link optionsJustin Goshi2019-09-102-4/+129
| |/ /
* | | Merge topic 'windows-auto-export-incremental-build'Brad King2019-09-102-3/+34
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | ff5028c531 Windows: Prevent auto exports to be regenerated on every build Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !3750
| * | | Windows: Prevent auto exports to be regenerated on every buildDaniel Eiband2019-09-092-3/+34
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Check modified time stamps of input files against an existing exports file before generating the auto exports. Fixes: #19650
* | | | clang-tidy: Fix bugprone-exception-escape diagnostic in test codeBrad King2019-09-091-1/+2
| |/ / |/| |
* | | Merge topic 'cuda_resolve_device_symbols_on_static_lib_collect_deps_properly'Brad King2019-09-096-44/+42
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | 2d7bb13da7 CUDA: static lib device linking computes required static libs Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !3748
| * | | CUDA: static lib device linking computes required static libsRobert Maynard2019-09-056-44/+42
| | |/ | |/| | | | | | | | | | | | | Previously the CMake didn't compute the required set of libraries needed to properly device link a static library when CUDA_RESOLVE_DEVICE_SYMBOLS was enabled.
* | | Merge topic 'doxygen-add-docs-USE_STAMP_FILE'Craig Scott2019-09-064-0/+42
|\ \ \ | |_|/ |/| | | | | | | | | | | | | | 611eb26b9d FindDoxygen: add USE_STAMP_FILE option Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !3238
| * | FindDoxygen: add USE_STAMP_FILE optionNikita Sirgienko2019-09-054-0/+42
| | | | | | | | | | | | The new option enables the behavior of only building if sources change.
* | | Merge topic 'unity-build'Brad King2019-09-0530-0/+388
|\ \ \ | |_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 7786a05c70 Unity build: Add XCode support 1353802af3 Unity build: Add unit tests 8dfeb5d278 Unity build: Add support for Visual Studio generator 7114c141e2 Unity build: Add support for Ninja and Makefile generators Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: Stanislav Ershov <digital.stream.of.mind@gmail.com> Acked-by: Evgeniy Dushistov <dushistov@mail.ru> Acked-by: Viktor Kirilov <vik.kirilov@gmail.com> Merge-request: !3611
| * | Unity build: Add unit testsCristian Adam2019-08-3030-0/+388
| |/
* | Merge topic 'pch-fix-vs-test'Brad King2019-09-041-11/+8
|\ \ | | | | | | | | | | | | | | | | | | 383bf3b5e7 Precompile Headers: Fix Visual Studio 10 unit test Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !3770
| * | Precompile Headers: Fix Visual Studio 10 unit testCristian Adam2019-09-031-11/+8
| | | | | | | | | | | | | | | | | | The unit test is more roboust, problems like c: vs C: or having relative paths of cmake_pch.cxx instead of absolute paths.
* | | Merge topic 'tidy-use-using'Brad King2019-09-041-1/+1
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | 62e5f72289 clang-tidy: Replace typedef with using Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !3731
| * | | clang-tidy: Replace typedef with usingRegina Pfeifer2019-09-031-1/+1
| | | |
* | | | Ninja: Pass preprocessor definitions when compiling with Intel FortranBrad King2019-09-033-0/+14
|/ / / | | | | | | | | | | | | | | | | | | | | | The Intel Fortran compiler supports an extension that allows conditional compilation based on preprocessor definitions specified on the command line even when not preprocessing. Fixes: #19664
* | | IWYU: Add missing cstddef includes for size_t and nullptr_tBrad King2019-09-031-0/+1
| | | | | | | | | | | | The IWYU tool we use for CI now diagnoses these.
* | | Merge topic 'FindPython-specify-artifacts-directly'Brad King2019-09-033-0/+164
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | 06d9e67fbd FindPython: Add capability to specify directly artifacts cea2010b5c FindPython: Enhance python cache variables management. Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !3690
| * | | FindPython: Add capability to specify directly artifactsMarc Chevrier2019-09-023-0/+164
| |/ / | | | | | | | | | Fixes: #19492
* | | Merge topic 'xcode11-bundles'Brad King2019-09-033-2/+12
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | e29a92f525 Xcode: Make BundleTests compatible with Xcode 11 Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !3767
| * | | Xcode: Make BundleTests compatible with Xcode 11Gregor Jasny2019-09-013-2/+12
| | |/ | |/|
* | | Merge topic 'clang-ipo-support'Brad King2019-09-038-13/+36
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | dca9c33abc Tests: Remove old IPO test c856d4556b bindexplib: supporting llvm bitcode formats using llvm-nm 079b8e2916 Clang: prefer lld-link over link.exe 6e3655db2c Clang: add LTO support for GNU-command line clang on windows Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !3527