summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/CMakeLists.txt
Commit message (Collapse)AuthorAgeFilesLines
* CUDA: CheckLinkerFlag now supports CUDARobert Maynard2020-10-081-1/+3
|
* CUDA: Add Support to SourceCompiles|Runs and CheckCompilerFlagsRobert Maynard2020-10-081-3/+9
|
* Merge topic 'add_ispc_to_check_helpers'Brad King2020-10-071-1/+4
|\ | | | | | | | | | | | | e17e2c6a51 ISPC: CheckCompilerFlags and CheckSourceCompiles support ISPC Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !5337
| * ISPC: CheckCompilerFlags and CheckSourceCompiles support ISPCRobert Maynard2020-10-061-1/+4
| |
* | Merge topic 'cmake-presets'Brad King2020-10-061-0/+1
|\ \ | |/ |/| | | | | | | | | | | | | | | | | | | | | | | | | 6f8fdc686c .gitignore: Add CMakeUserPresets.json 1d25760198 Help: Add presets documentation and release notes a4382f72d7 CMake GUI: Add presets functionality 8617479061 CMake: Add presets functionality 06128cf949 Presets: Add cmCMakePresetsFile class 5a36542086 Refactor: Add allowArch parameter to cmake::CreateGlobalGenerator() 3059e6aed7 cmJSONHelpers: Add new Bind() function 8682d1b7b2 CMake GUI Tests: Increase default sleep time Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: Michael Hirsch, Ph.D. <michael@scivision.dev> Merge-request: !5169
| * CMake: Add presets functionalityKyle Edwards2020-10-051-0/+1
| |
* | CheckCompilerFlag: Add tests to verify module correctnessRobert Maynard2020-10-061-0/+1
|/
* ctest: report make-level errors to CDash when using launchersZack Galbreath2020-09-281-1/+5
| | | | Fixes: #19545
* CheckSoureRuns: Add a unified way to check if a source runsRobert Maynard2020-09-231-0/+1
|
* CheckSoureCompiles: Add a unified way to check if a source compilesRobert Maynard2020-09-231-0/+2
|
* ExternalProject: Use CMP0114 NEW behavior with Xcode "new build system"Brad King2020-09-181-0/+3
| | | | | | | The ExternalProject module cannot be implemented in the Xcode "new build system" without using CMP0114's NEW behavior. When configuring for that build system, warn if the policy is not set to NEW and use NEW behavior anyway.
* Xcode: Add option to specify build system variantBrad King2020-09-181-0/+3
| | | | | | Extend the `-T <toolset>` option to support a `buildsystem=` field with the Xcode generator. Add a `CMAKE_XCODE_BUILD_SYSTEM` variable to inform project code about the selected build system variant.
* Merge topic 'pch-instantiate-templates'Brad King2020-09-101-1/+3
|\ | | | | | | | | | | | | | | | | | | 8c8f03422e PCH: Template instantiation support Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: Raul Tambre <raul@tambre.ee> Acked-by: Cristian Adam <cristian.adam@gmail.com> Tested-by: Raul Tambre <raul@tambre.ee> Merge-request: !5168
| * PCH: Template instantiation supportTobias Hieta2020-09-021-1/+3
| | | | | | | | | | | | | | | | Adds PCH_INSTANTIATE_TEMPLATES target property for enabling template instantiation in precompiled headers. Enabled by default. Currently only supported for Clang 11 and newer. Implements #21133.
* | Merge topic 'ispc_improvements'Brad King2020-09-081-2/+9
|\ \ | | | | | | | | | | | | | | | | | | | | | a020787a9b ISPC: Support generation for multiple instruction sets 5a1750017e ISPC: Add compiler launcher support Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !5173
| * | ISPC: Support generation for multiple instruction setsRobert Maynard2020-09-041-1/+5
| | |
| * | ISPC: Add compiler launcher supportRobert Maynard2020-09-031-1/+4
| | |
* | | cmake_path command: path managementMarc Chevrier2020-09-061-0/+1
|/ / | | | | | | Fixes: #19568, #20922
* | Merge branch 'master' into ninja-multi-automoc-regressionKyle Edwards2020-09-021-3/+14
|\ \
| * | file: Add CHMOD and CHMOD_RECURSE subcommandsSibi Siddharthan2020-08-261-0/+1
| |/ | | | | | | | | | | Fixes: #21057 Signed-off-by: Sibi Siddharthan <sibisiddharthan.github@gmail.com>
| * Merge topic 'win32-executable-genex'Brad King2020-08-251-0/+4
| |\ | | | | | | | | | | | | | | | | | | 3ef0c40962 WIN32_EXECUTABLE: Add support for generator expressions Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !5146
| | * WIN32_EXECUTABLE: Add support for generator expressionsKyle Edwards2020-08-211-0/+4
| | |
| * | cmTarget: Raise error if imported target location is not setRaul Tambre2020-08-211-0/+1
| |/ | | | | | | | | | | | | | | Previously we would synthesize <TARGET_NAME>-NOTFOUND as the location. This would then end up on the link line and cause build failures. Policy CMP0110 is added to control this behaviour. Fixes #19080, #19943.
| * Merge topic 'msvc_c11'Brad King2020-08-201-0/+9
| |\ | | | | | | | | | | | | | | | | | | f4373feda8 Tests: Fix RunCMake.try_compile test for C standards with MSVC 19.27 Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !5145
| * \ Merge topic 'add_test-special-chars-in-name'Brad King2020-08-171-0/+1
| |\ \ | | | | | | | | | | | | | | | | | | | | | | | | a20987732b add_test: Allow special characters in test name (w/ policy CMP0110) Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !5076
| | * | add_test: Allow special characters in test name (w/ policy CMP0110)Deniz Bahadir2020-08-121-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Restore the change from commit f84af8e270 (add_test: Allow special characters in test name, 2020-05-16, v3.18.0-rc1~142^2) that had to be reverted by commit f84af8e270 (add_test: Allow special characters in test name, 2020-05-16, v3.18.0-rc1~142^2) for compatibility. Add policy CMP0110 to make the change in a compatible way. Also, support even more characters than before by generating the test scripts using bracket arguments around the test names. Fixes: #19391 Signed-off-by: Deniz Bahadir <dbahadir@benocs.com>
| * | | Add option to optimize link dependencies for static librariesKyle Edwards2020-08-121-0/+1
| |/ / | | | | | | | | | | | | | | | | | | | | | | | | Add an `OPTIMIZE_DEPENDENCIES` target property and supporting `CMAKE_OPTIMIZE_DEPENDENCIES` variable to optionally enable pruning and flattening of outgoing dependencies from static libraries. Since they do not actually link, they only depend on side effects of their dependencies. Therefore we can drop dependencies that contribute no side effects.
| * | Merge topic 'compiler_flags'Brad King2020-08-061-0/+1
| |\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | f76c20da63 Toolchain: Test compiler initial settings db486da265 Toolchain: Update documentation for initial compiler flags deec2f587c Toolchain: Take CMAKE_<lang>_FLAGS_INIT into account during compiler detection ca899af3e2 Toolchain: Handle repeated invocations of CMake with -DCMAKE_C_COMPILER 12ba89e142 Toolchain: Make `/path/comp;-argn' behave the same as 'comp;-argn' 6f1af899db Toolchain: Capture all arguments from CMAKE_<LANG>_COMPILER ec1d3bc0b6 cmake: avoid exception when printing "changed variables" message Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !4136
| | * | Toolchain: Test compiler initial settingsFred Baksik2020-08-031-0/+1
| | | |
| * | | Merge topic 'automoc_timestamp_deps'Brad King2020-08-061-0/+3
| |\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 9a9ed4b9d3 Merge branch 'backport-3.17-automoc_timestamp_deps' 7445c9a58a AutoGen: Add test to check for correct AutoMoc dependencies a79056bb02 AutoGen: Fix over-specified direct dependencies of custom command Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: Aleix <aleixpol@kde.org> Merge-request: !5085
| * \ \ \ Merge topic 'revert-add_test-special-chars'Brad King2020-07-281-1/+0
| |\ \ \ \ | | |_|/ / | |/| | | | | | | | | | | | | | | | | | | | | | | 5fc5f4d26e add_test: Revert "Allow special characters in test name" Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !5067
| * | | | Tests: Rename test RunCMake.{interface_library => InterfaceLibrary}Brad King2020-07-221-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | Our RunCMake.<lower-case> namespace is meant for testing individual CMake language commands.
| * | | | Allow generator expressions in the EXCLUDE_FROM_ALL target propertyJoerg Bornemann2020-07-211-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This allows for setting EXCLUDE_FROM_ALL, conditional on the build configuration. However, only the Ninja Multi-Config generator supports different property values per config. All other multi-config generators will yield an error in that situation. Fixes: #20923
| * | | | Merge topic 'cuda-memcheck'Brad King2020-07-131-0/+1
| |\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | cee92a9fb0 Help: add release notes for CTest cuda-memcheck support f38e4a1871 Tests: Add cases for CTest cuda-memcheck parser fe062800f0 CTest: add cuda-memcheck support Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: tcojean <terry.cojean@kit.edu> Merge-request: !4952
| | * | | | Tests: Add cases for CTest cuda-memcheck parserTobias Ribizel2020-07-091-0/+1
| | | | | |
| * | | | | Merge topic 'restore-cwd-translation-map'Brad King2020-07-031-0/+4
| |\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 85a945a607 Restore handling of build directory inside a symlinked path Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !4963
| * \ \ \ \ \ Merge topic 'find_library-file-readable'Brad King2020-06-301-1/+1
| |\ \ \ \ \ \ | | |_|/ / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | f2c903fb9a find_library: Check that library files are readable Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !4945
| * | | | | | Visual Studio: Add Android supportKyle Edwards2020-06-241-2/+2
| | | | | | |
* | | | | | | Tests: Pass additional Qt information to Ninja and NMC testsKyle Edwards2020-09-011-2/+2
| |_|_|_|_|/ |/| | | | |
* | | | | | Tests: Fix RunCMake.try_compile test for C standards with MSVC 19.27Brad King2020-08-191-0/+9
| |_|_|_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | Since commit f7347f28c7 (MSVC: Record support for C11 and c_restrict, 2020-08-09) we know about MSVC C language standards. Update the `RunCMake.try_compile` test to be aware of this even when CMake is itself configured by an older CMake that does not know this.
* | | | | Merge branch 'backport-3.17-automoc_timestamp_deps'Brad King2020-08-051-0/+3
|\ \ \ \ \ | |_|_|_|/ |/| | | |
| * | | | AutoGen: Add test to check for correct AutoMoc dependenciesAlexandru Croitor2020-08-031-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When using Qt 5.15.0 or above together with Ninja, check that touching a source file of a dependency does not needlessly re-run AUTOMOC for the dependee target.
* | | | | add_test: Revert "Allow special characters in test name"Brad King2020-07-271-1/+0
| |_|_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Revert commit f84af8e270 (add_test: Allow special characters in test name, 2020-05-16, v3.18.0-rc1~142^2). Unfortunately the fix breaks projects that were working around the limitation with manual escaping. The fix can be re-introduced with a policy in a future version. Also add a 3.18.1 release note explaining the change. Fixes: #21017, #20965 Issue: #19391
* | | | Restore handling of build directory inside a symlinked pathBrad King2020-07-021-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In commit dd8365b3f1 (Merge branch 'upstream-KWSys' into update-kwsys, 2020-04-06, v3.18.0-rc1~397^2) we imported KWSys commit `019afb6ea` (SystemTools: Drop GetCurrentWorkingDirectory 'collapse' argument, 2020-04-03). That caused `GetCurrentWorkingDirectory` to no longer send paths through the KWSys translation map and broke CMake's detection of the absolute path to a build directory containing a symbolic link. Add our own `cmSystemTools::GetCurrentWorkingDirectory` wrapper around the KWSys method in order to restore that mapping. Test-case-by: Ben Boeckel <ben.boeckel@kitware.com> Issue: #16228 Fixes: #20900
* | | | Merge topic 'find_library-file-readable' into release-3.18Brad King2020-06-301-1/+1
|\ \ \ \ | |_|/ / |/| | / | | |/ | |/| | | | | | | f2c903fb9a find_library: Check that library files are readable Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !4945
| * | find_library: Check that library files are readableBrad King2020-06-291-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | Refactoring in commit 6b85166920 (ENH: Refactor find_library search logic, 2008-09-22, v2.8.0~1665) dropped a call to `FileExists` on the path under the assumption that the presence of a file in a directory listing means it exists. However, dropping that also dropped a check that verifies the file is readable. Restore the `FileExists` call to ensure that we only find readable libraries.
* | | Tests: Split RunCMake.target_link_libraries testMarc Chevrier2020-06-171-0/+3
|/ / | | | | | | Fixes: #20836
* | Tests: Factor out RunCMake.file-GET_RUNTIME_DEPENDENCIES testBrad King2020-06-161-1/+5
| | | | | | | | Move the `file(GET_RUNTIME_DEPENDENCIES)` cases out of `RunCMake.install`.
* | Tests: Factor out RunCMake.GenEx-GENEX_EVAL testBrad King2020-06-161-0/+1
| | | | | | | | Move the `GENEX_EVAL` cases and friends out of `RunCMake.GeneratorExpression`.
* | Tests: Factor out RunCMake.GenEx-TARGET_FILE testBrad King2020-06-161-1/+4
| | | | | | | | Move the `TARGET_FILE` cases and friends out of `RunCMake.GeneratorExpression`.