summaryrefslogtreecommitdiffstats
path: root/Tests
Commit message (Collapse)AuthorAgeFilesLines
* Merge topic 'cmake_path-stabilization'Marc Chevrier2021-01-152-5/+5
|\ | | | | | | | | | | | | 76f0bcdfb6 cmake_path: various updates Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !5695
| * cmake_path: various updatesMarc Chevrier2021-01-132-5/+5
| | | | | | | | | | | | To follow discussions in #21385 and !5682: * Fix bug in cmCMakePath::IsSuffix() method * cmake_path(HASH) always normalized paths (NORMALIZE option removed)
* | Merge topic 'fileapi-toolchains'Brad King2021-01-1410-1/+151
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | 6418dabb87 Tests: Add test for toolchains-v1 File API object 1c5bd1bed5 Tests: Add toolchains kind to capabilities test f72bb2ee0d Help: Add documentation for "toolchains" object kind bb069c0857 cmFileAPI: Add "toolchains" object kind. Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !5678
| * | Tests: Add test for toolchains-v1 File API objectBen McMorran2021-01-129-0/+150
| | |
| * | Tests: Add toolchains kind to capabilities testBen McMorran2021-01-121-1/+1
| | |
* | | Merge topic 'fuzz1'Brad King2021-01-142-0/+35
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | b0107165b7 Tests: Add a fuzzer for oss-fuzz Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !5668
| * | | Tests: Add a fuzzer for oss-fuzzAdamKorcz2021-01-132-0/+35
| | | |
* | | | Merge topic 'install-FILES-rename-genex'Brad King2021-01-146-0/+21
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ac3ccc393e install(files): Support genex in rename option Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !5694
| * | | | install(files): Support genex in rename optionAsit Dhal2021-01-136-0/+21
| | |_|/ | |/| | | | | | | | | | Fixes: #19903
* | | | Merge topic 'ExternalProject-configure-handled-by-build'Brad King2021-01-133-0/+77
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 7155e358c9 ExternalProject: Add CONFIGURE_HANDLED_BY_BUILD option Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !5626
| * | | | ExternalProject: Add CONFIGURE_HANDLED_BY_BUILD optionDaan De Meyer2021-01-123-0/+77
| | | | | | | | | | | | | | | | | | | | Fixes #21592.
* | | | | Merge topic 'issue-21663'Brad King2021-01-133-2/+7
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 38e2299fc8 list(REMOVE_ITEM): Make removal of an empty item a no-op. Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !5693
| * | | | | list(REMOVE_ITEM): Make removal of an empty item a no-op.Asit Dhal2021-01-123-2/+7
| | | | | | | | | | | | | | | | | | | | | | | | Fixes: #21663
* | | | | | Merge topic 'depend_make_refine'Brad King2021-01-131-7/+1
|\ \ \ \ \ \ | |_|_|/ / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | 4d509437cb cmDepends: disable long line dependencies for nmake Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !5689
| * | | | | cmDepends: disable long line dependencies for nmakeKai Wang2021-01-111-7/+1
| |/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is a follow-up to commit b696f78073 (cmDepends: merge dependers of depend makefile, 2020-12-18). NMake of visual studio has many versions that not support long line dependencies of make rule. Signed-off-by: Wangkai <wangkai86@huawei.com> Fixes: #21681
* | | | | Merge topic 'ninja-multi-config-post-build'Brad King2021-01-124-0/+17
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 98805a11ce Ninja Multi-Config: Run POST_BUILD when BYPRODUCTS don't overlap Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !5673
| * | | | | Ninja Multi-Config: Run POST_BUILD when BYPRODUCTS don't overlapKyle Edwards2021-01-074-0/+17
| | |_|_|/ | |/| | | | | | | | | | | | | Fixes: #21252
* | | | | Merge topic 'trace_expand_bracket'Brad King2021-01-121-0/+1
|\ \ \ \ \ | |_|/ / / |/| | | | | | | | | | | | | | | | | | | | | | | | e6e7f2cab9 cmMakefile: Don't expand bracket arguments in --trace-expand Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !5687
| * | | | cmMakefile: Don't expand bracket arguments in --trace-expandRaul Tambre2021-01-111-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bracket arguments are literal and shouldn't be expanded. Fixes #21671.
* | | | | Merge topic 'xcode-object-ids'Brad King2021-01-083-0/+26
|\ \ \ \ \ | |/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | b8b6573db8 Xcode: Use deterministic object ids for script build phases 2892228dc9 cmGlobalXCodeGenerator: Add infrastructure for deterministic object ids d250b67722 cmGlobalXCodeGenerator: Adopt pbxproj object id generation Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !5671
| * | | | Xcode: Use deterministic object ids for script build phasesBrad King2021-01-063-0/+26
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The Xcode "new build system" only considers a script build phase up to date if it has run before, even if outputs are newer than inputs. Use a deterministic object id for script build phases associated with custom commands so that they do not need to re-run after CMake re-generates the project. Fixes: #21669
| * | | | Merge topic 'fc-relative-SOURCE_DIR' into release-3.19Craig Scott2020-12-223-0/+9
| |\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 51595e5f01 FetchContent: Relative SOURCE_DIR override cannot be a hard error Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !5641
* | \ \ \ \ Merge topic 'fix-21620'Brad King2021-01-077-11/+120
|\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 8cb8dd6da5 AutoMoc: Re-run after adding Q_OBJECT macro fefba42e37 Add a failing test case for #21620 2999c40dd9 Extend QtAutogen/RerunMoc f623664e87 Do not use try_compile in RerunMocBasic test Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !5642
| * | | | | | Add a failing test case for #21620Joerg Bornemann2021-01-066-2/+61
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Extend Qt(4|5)Autogen.RerunMocBasic to check the following situation: Class MyObject3 is a QObject-derived class without Q_OBJECT macro. It's declared in myobject3.h that is not included by any file that is input of AutoMoc (this is why we had to add PlainObject). If myobject3.h were included by main.cpp, then AutoMoc would already track this dependency, because main.cpp has a Q_OBJECT macro. After the initial build(s), the Q_OBJECT macro is added to myobject3.h, and an incremental build is run. With Qt >= 5.15 and Ninja, the build fails, because AutoMoc is not run due to the missing dependency to myobject3.h.
| * | | | | | Extend QtAutogen/RerunMocJoerg Bornemann2021-01-062-0/+32
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Test that removing / adding a Q_OBJECT macro doesn't break incremental builds. This was initially done to test the fix for #21620, but the test passes without the fix. The reason is that test1.h is included by main.cpp, which contains a Q_OBJECT macro, meaning that test1.h is in AutoMoc's dependencies transitively.
| * | | | | | Do not use try_compile in RerunMocBasic testJoerg Bornemann2021-01-061-10/+28
| | |_|/ / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In a subsequent patch we want to extend RerunMocBasic to test the removal and addition of Q_OBJECT macros works when building incrementally. For that, properly generated dependencies are necessary. Currently, the MocBasic test project is configured using try_compile, and that turns off the generation of depfiles. Replace the try_compile call with execute_command calls that first configure and then build the test project.
* | | | | | Merge topic 'export-compile-commands-per-target'Brad King2021-01-075-0/+69
|\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | a742b5d137 CMAKE_EXPORT_COMPILE_COMMANDS: allow configuration per target Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !5651
| * | | | | | CMAKE_EXPORT_COMPILE_COMMANDS: allow configuration per targetShannon Booth2021-01-055-0/+69
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The new target property `EXPORT_COMPILE_COMMANDS` associated with the existing global variable can be used to optionally configure targets for their compile commands to be exported. Fixes: #19462
* | | | | | | Merge topic 'vs_shader_flags-generator-expressions'Brad King2021-01-071-2/+2
|\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 67775aaf5b VS: Add genex support to VS_SHADER_FLAGS Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !5664
| * | | | | | | VS: Add genex support to VS_SHADER_FLAGSJeremiah van Oosten2021-01-051-2/+2
| | |_|_|_|_|/ | |/| | | | |
* | | | | | | Tests: Fix ConfigSources test with Intel compiler on WindowsBrad King2021-01-061-0/+5
| |_|/ / / / |/| | | | | | | | | | | | | | | | | | | | | | | The test regularly fails updating the `vc*.pdb` compiler-generated PDB file. Add the `/Z7` flag as the compiler suggests for this.
* | | | | | Merge topic 'explicit-this-fix'Brad King2021-01-062-27/+27
|\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 209daa20b2 Code style: add missed explicit 'this->' Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !5400
| * | | | | | Code style: add missed explicit 'this->'Oleksandr Koval2021-01-052-27/+27
| |/ / / / / | | | | | | | | | | | | | | | | | | | | | | | | CMake uses explicit 'this->' style. Using custom clang-tidy check we can detect and fix places where 'this->' was missed.
* | | | | | Merge topic 'depend_make_refine'Brad King2021-01-066-3/+48
|\ \ \ \ \ \ | |_|/ / / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | b696f78073 cmDepends: merge dependers of depend makefile Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !5631
| * | | | | cmDepends: merge dependers of depend makefileKai Wang2021-01-056-3/+48
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Since one depender has multiple dependees, depend makefile generated same depender line by line, to reduce file size and refine make file parse speed, merge same dependers to one. And add a testcase for large depend.make which generated source file includes 20000 header files and run build and incremental build Signed-off-by: Wangkai <wangkai86@huawei.com> Signed-off-by: Zhaoyingdong <zhaoyingdong@huawei.com>
* | | | | | Merge topic 'java-export-native_headers'Brad King2021-01-053-1/+30
|\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 53235626a2 UseJava: enable exportation of native headers target Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !5658
| * | | | | | UseJava: enable exportation of native headers targetMarc Chevrier2020-12-293-1/+30
| |/ / / / /
* | | | | | Merge topic 'ninja-omit-empty-custom-command'Brad King2021-01-052-0/+8
|\ \ \ \ \ \ | |_|/ / / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | d43f4692e0 Ninja: Omit custom commands with an empty COMMAND Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !5647
| * | | | | Ninja: Omit custom commands with an empty COMMANDShannon Booth2020-12-232-0/+8
| | | | | | | | | | | | | | | | | | | | | | | | Fixes: #21063
* | | | | | Merge topic 'tests-bump-minver'Brad King2021-01-0476-76/+79
|\ \ \ \ \ \ | |_|/ / / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | 72e7c45e98 Tests: Bump CMake minimum required in tests to 2.8.12 Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !5644
| * | | | | Tests: Bump CMake minimum required in tests to 2.8.12Chuck Atkins2020-12-2376-76/+79
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Since 3.19, CMake generates a deprecation warning when using a minimum version less than 2.8.12. This eliminates those warnings generated during tests, which are typically hidden from the user and developer but are being generated nonetheless.
* | | | | | Merge topic 'makefiles-custom_command-depfile'Marc Chevrier2020-12-2617-14/+227
|\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 3eacf857e3 Tests: Add case for DEPFILE in add_custom_command cfd8a5ac1f Makefiles: Add support of DEPFILE for add_custom_command a526f71266 cmGccDepfileReader: Add new function ensuring paths are valid Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !5617
| * | | | | | Tests: Add case for DEPFILE in add_custom_commandMarc Chevrier2020-12-237-0/+123
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Issue: #20286, #21415
| * | | | | | Makefiles: Add support of DEPFILE for add_custom_commandMarc Chevrier2020-12-2311-14/+104
| | |/ / / / | |/| | | | | | | | | | | | | | | | | | | | | | Issue: #20286 Fixes: #21415
* | | | | | Merge topic 'xcode-inherit-paths'Craig Scott2020-12-243-0/+98
|\ \ \ \ \ \ | |/ / / / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 5115e8b2b6 Xcode: Generalize inheritance of project-level search paths 6b6230b23b cmGlobalXCodeGenerator: Factor out helper to append attribute Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !5637
| * | | | | Xcode: Generalize inheritance of project-level search pathsBrad King2020-12-223-0/+98
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Generalize the change from commit bffb17be3d (Xcode: Inherit target library and framework search paths from project, 2020-11-04, v3.19.0-rc3~4^2) to apply to framework and other kinds of search paths added either for include directories or for linking. Issue: #21617
* | | | | | Merge topic 'fc-relative-SOURCE_DIR'Craig Scott2020-12-223-0/+9
|\ \ \ \ \ \ | | |_|_|/ / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | 51595e5f01 FetchContent: Relative SOURCE_DIR override cannot be a hard error Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !5641
| * | | | | FetchContent: Relative SOURCE_DIR override cannot be a hard errorCraig Scott2020-12-223-0/+9
| | | | | | | | | | | | | | | | | | Fixes: #21624
* | | | | | Merge topic 'test-ConfigSources-config'Brad King2020-12-221-1/+1
|\ \ \ \ \ \ | |_|_|/ / / |/| | | / / | | |_|/ / | |/| | | | | | | | | | | | | 3af0671019 Tests: Fix ConfigSources test with empty CMAKE_BUILD_TYPE Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !5643
| * | | | Tests: Fix ConfigSources test with empty CMAKE_BUILD_TYPEBrad King2020-12-221-1/+1
| |/ / / | | | | | | | | | | | | | | | | | | | | The test requires a non-empty `CMAKE_BUILD_TYPE` to function on single-config generators. Force a non-empty configuration if the test is configured explicitly with empty `-DCMAKE_BUILD_TYPE=`.