summaryrefslogtreecommitdiffstats
path: root/Tests/CMakeLists.txt
Commit message (Collapse)AuthorAgeFilesLines
* FindImageMagick: Define targets for specific componentshstejas2023-01-271-0/+1
| | | | | | | - With this change we can use e.g. ImageMagick::Magick++ directly in targt_link_libraries. - This change also adds CFLAGS which was missing before. - Also adds example on how to use the targets.
* FindPython: add support for Stable ABIMarc Chevrier2022-11-291-1/+4
| | | | Fixes: #24141
* ASM_MARMASM: Add support for Microsoft ARM assembler languageIlia K2022-11-091-0/+6
| | | | | | https://learn.microsoft.com/en-us/cpp/assembler/arm/arm-assembler-reference Fixes: #23999
* Tests: Fix ARM64 test conditions for non-VS generatorsBrad King2022-11-091-1/+1
|
* Tests: Factor out a CMake_TEST_OBJC variable for OBJC/OBJCXX test conditionsBrad King2022-10-311-3/+11
|
* Merge topic 'CheckSourceCompiles-Swift'Brad King2022-10-251-18/+24
|\ | | | | | | | | | | | | | | | | | | | | 3fc971c38b CheckSourceCompiles: For Swift executable, name source 'main.swift' 2345139ab5 CheckSourceCompiles: Add support for Swift 4451a1f54f Tests: Factor out a CMake_TEST_Swift variable for Swift test conditions f78ad6223a Tests: Provide Apple inspection results to CMakeOnly and RunCMake tests Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: Saleem Abdulrasool <compnerd@compnerd.org> Merge-request: !7783
| * Tests: Factor out a CMake_TEST_Swift variable for Swift test conditionsBrad King2022-10-241-1/+6
| |
| * Tests: Provide Apple inspection results to CMakeOnly and RunCMake testsBrad King2022-10-211-17/+18
| | | | | | | | | | Re-order logic to make `CMake_TEST_XCODE_VERSION` and friends available to the `Tests/CMakeOnly` and `Tests/RunCMake` directories.
* | Merge topic 'test-git-protocol-file'Brad King2022-10-211-0/+2
|\ \ | |/ |/| | | | | | | | | | | 79ce0f434e Tests: Explicitly allow usage of git file-based protocol in test cases Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: buildbot <buildbot@kitware.com> Merge-request: !7812
| * Tests: Explicitly allow usage of git file-based protocol in test casesBrad King2022-10-201-0/+2
| | | | | | | | | | | | | | | | | | Due to CVE-2022-39253, Git 2.30.6 sets `protocol.file.allow=user` by default. The change has also been backported to other Git versions by distros. This breaks some of our test cases that use the file-based protocol locally to simulate real workflows without requiring network access. In these cases the file protocol is safe, so explicitly enable it in the tests.
* | Tests: Improve CheckSourceTree testBrad King2022-10-051-0/+8
| | | | | | | | | | | | | | | | Re-implement the test using simpler approach. Enable it only when doing an out-of-source build with a `.git` source. Run it last, serially. Re-use the `git` tool found for version computation. Print the output from `git status` without modification. Rely on `.gitignore` instead of filtering out paths ourselves.
* | Deprecate Visual Studio 11 2012 generatorBrad King2022-09-271-0/+7
| | | | | | | | | | Update documentation to mark the generator deprecated. Add a warning at the end of generation plus an option to turn off the warning.
* | Drop Visual Studio 10 2010 generatorBrad King2022-09-261-10/+0
| | | | | | | | This generator has been deprecated since CMake 3.22. Remove it.
* | Merge topic 'modernize-build-self'Brad King2022-09-231-126/+126
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 9629be8080 Build: Use `CMAKE_CURRENT_XXX_DIR` instead of top dirs e6fb5a1feb Build: Sort linked libraries list of `CMakeLib` aa7290e8dc Build: Use imported target `Threads::Threads` instead of variable df8ad72ffa Build: Use imported target `kwiml::kwiml` instead of variables eeebf31e54 Build: Use imported target `LibRHash::LibRHash` instead of variables 08be01a181 Build: Use imported target `LibUV::LibUV` instead of variables ddac6dcbe8 Build: Use imported target `JsonCpp::JsonCpp` instead of variables ac76c53d33 Build: Use imported target `CURL::libcurl` instead of variables ... Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: buildbot <buildbot@kitware.com> Merge-request: !7570
| * | CMakeLists: Remove redundant spaces around CMake command callsAlex Turbov2022-09-221-56/+56
| | |
| * | Build: Modernize some `foreach` calls to use `IN LISTS`/`IN ITEMS`Alex Turbov2022-09-221-70/+70
| | |
* | | Tests: Add mixed Swift+CXX source test caseEvan Wilde2022-09-191-0/+3
|/ / | | | | | | | | | | | | | | This test ensures we can configure and build mixed source binaries. The test configures, but fails to verify due to multiple targets emitting the `lib.c.o` and `lib.cpp.o` outputs. Both the clang build step and the swift link step report that they emit the `lib.c.o` and `lib.cpp.o` outputs. The `.o`'s are emitted by clang, not by swift.
* | MSVC: Add test for debug information formatBrad King2022-09-141-0/+9
| | | | | | | | | | Verify that the format's flags are used to compile, both in the main project and in `try_compile` test projects.
* | FindOpenSP: Add module to find the OpenSP libraryDawid Wróbel2022-08-301-0/+1
| | | | | | | | | | OpenSP has not seen a release in seventeen years, so is unlikely to ever provide a CMake package configuration file. Add a find module instead.
* | Merge topic 'tutorial_genExp_rearrange'Brad King2022-08-101-1/+1
|\ \ | | | | | | | | | | | | | | | | | | | | | ccba87b05b Tutorial: Move step 10 to step 4 Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: buildbot <buildbot@kitware.com> Merge-request: !7506
| * | Tutorial: Move step 10 to step 4Markus Ferrell2022-08-081-1/+1
| | | | | | | | | | | | Shifts steps 4-9 to 5-10.
* | | Merge topic 'cuda_add_lto_support'Brad King2022-08-031-0/+5
|\ \ \ | |/ / |/| | | | | | | | | | | | | | | | | | | | | | | 96bc59b1ca CUDA: Add Device LTO support for nvcc 1527d48cd0 CheckIPO: Refactor logic selecting test source files 4a552ab4ad remove unused variables 6eda92d037 remove unused variable Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !7389
| * | CUDA: Add Device LTO support for nvccRobert Maynard2022-07-221-0/+5
| | | | | | | | | | | | Fixes #22200
* | | Tutorial: Move step 8 to step 5. Shift steps 5-7 to 6-8.Markus Ferrell2022-07-191-1/+1
|/ /
* | Tests: Exclude win/arm64 tests with CMAKE_VS_PLATFORM_NAMENiyas Sait2022-07-051-3/+3
| |
* | Tests: Fix Java tests on multi-config generatorsmakise-homura2022-06-281-3/+3
| | | | | | | | | | | | | | | | | | Java.NativeHeaders test was not passing on t:fedora36-ninja-multi pipeline. This is due to paths being not set because of $<CONFIG> being used at --test-command, but not being used at the actual CTest invocation. Now the correct variable is used there.
* | Tests: handle a case when hg executable is brokenmakise-homura2022-06-281-1/+4
| | | | | | | | | | | | OS Elbrus 6.0-rc1 to rc3 have hg executable broken because of python2 and python3 module directories conflict. Here, we avoid hg related tests if such case is detected.
* | Tests: don't fail tests on broken E2K Java RVMmakise-homura2022-06-281-37/+50
| | | | | | | | | | | | | | | | Java RVM on E2K architecture is known to be broken prior to RVM version 3.5.2 (they crash with SIGILL in some circumstances). That disallows tests like Java.Javah, Java.Jar, and Java.NativeHeaders to pass. Now, if such RVM is detected, these test are not being run.
* | Tests: check for shlibdeps symbols/shlibs before testing itmakise-homura2022-06-281-1/+5
| | | | | | | | | | | | | | | | OS Elbrus 6.x has totally broken dpkg-shlibdeps; 7.1 has a working one, but still no symbols/shdibdeps files, so generated dependencies are also empty. Since this commit, we're checking if these files exist, and if not, we skip the CPackComponentsDEB-components-depend2 test.
* | Tests: enable Java tests if javac is a recurse symlinkmakise-homura2022-06-281-1/+2
| | | | | | | | | | | | | | | | | | | | There are distros (OS Elbrus 6.x, 7.x, Ubuntu 21.x) where javac is a recurse symlink, like /usr/bin/javac -> /etc/alternatives/javac -> /usr/lib/jvm/.../bin/javac. On these distros, Java tests were not run, because Tests/CMakeLists.txt was not able to handle this case correctly. Now an additional stage of resolving symlinks is added, and these distros have Java tests running.
* | Tests: don't use broken makensismakise-homura2022-06-281-2/+5
| | | | | | | | | | | | Some distros (OS Elbrus less than 7.0) have unrunnable makensis. While performing tests, this condition is now checked, and NSIS CPack generator test is not performed.
* | FindOpenAL: Add imported targetSam V2022-06-221-0/+1
|/ | | | Fixes: #20026
* Tests: Use Java_JAVAC_EXECUTABLE variable consistentlyCraig Scott2022-06-041-1/+1
| | | | | | | | | | | | | | In certain specific scenarios, it is possible to end up with JAVA_COMPILE being unset, but Java_JAVAC_EXECUTABLE being set. This typically occurs when running different versions of CMake in the same build directory without deleting the CMakeCache.txt each time. This can result in an obscure error about the wrong number of arguments to the get_filename_component() command, but the real cause is the JAVA_COMPILE variable being unset. The JAVA_COMPILE variable is only set by the FindJava module, and it is a legacy variable that has been superceded by Java_JAVAC_EXECUTABLE. The latter is what the if() expression tests, so use that same variable in the body of the if() block for consistency and to avoid the above problem.
* Merge topic 'vs-arm64-tests'Brad King2022-05-121-3/+7
|\ | | | | | | | | | | | | 834422e075 Tests: Fix test failures for Windows Arm64 platforms Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !7251
| * Tests: Fix test failures for Windows Arm64 platformsNiyas Sait2022-05-111-3/+7
| |
* | OpenWatcom: Allow specifying the runtime libraryCameron Cawley2022-05-061-0/+4
|/ | | | | | | | Add a `CMAKE_WATCOM_RUNTIME_LIBRARY` variable to control the runtime library selection. Add policy CMP0136 to switch to in place of the old hard-coded default flags. Fixes: #23178
* CPack: Remove the deprecated PackageMaker generatorCraig Scott2022-05-041-11/+0
| | | | | | This CPack generator has been deprecated since commit 7bf187499f (CPack: Deprecate PackageMaker generator, 2020-01-31). Fixes: #23344
* messages: remove screamake from comments and errorsBen Boeckel2022-04-251-1/+1
|
* Merge topic 'FindJNI-targets'Brad King2022-04-071-0/+1
|\ | | | | | | | | | | | | | | | | | | 00c4f488f2 FindJNI: support Android NDK 171d45c039 FindJNI: added components and imported targets 35e92ec619 FindJNI: improved description Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: Alex <leha-bot@yandex.ru> Merge-request: !7069
| * FindJNI: added components and imported targetsSergiu Deitsch2022-04-041-0/+1
| |
* | FindMatlab: Add NO_IMPLICIT_LINK_TO_MATLAB_LIBRARIES option to matlab_add_mexSilvio2022-04-051-0/+3
|/
* Tests: Add Matlab label to Matlab-related testsSilvio2022-03-251-0/+6
|
* GHS: use INSTALL targetFred Baksik2022-03-171-1/+1
| | | | For consistancy use upper case install for pre-defined targets.
* ctest: print WORKING_DIRECTORY property with -VKevin Puetz2022-03-091-1/+1
|
* Tests: Run CTest.UpdateP4 tests only if explicitly enabledBrad King2022-02-221-7/+1
| | | | | The test occasionally fails with "Gave up waiting for server to start". Drop our heuristic so we can enable it only on specific builds.
* Tests: Preemptively create test HOME .bazaar directoryBrad King2022-02-221-0/+3
| | | | | | | | | Occasionally one of the `CTest.UpdateBZR` tests fails with: bzr: ERROR: [...] File exists: '/.../Tests/CMakeFiles/TestHome/.bazaar' Create the directory ahead of time to eliminate any chance of a time-of-check-time-of-use race.
* Tests: Run CTest.UpdateBZR tests only if explicitly enabledBrad King2022-02-081-7/+1
| | | | | | | | These tests have not been automatically enabled on current versions of `bzr` in a long time. The recent change to drop the `xmlplugins` heuristic caused the tests to start running on some machines, but they do not work everywhere. Disable the tests again pending further investigation.
* Tests: Add cache entries to control ExternalProject test VCS toolsBrad King2022-02-071-0/+7
| | | | | | Add undocumented `CMake_TEST_ExternalProject_*` cache entries to explicitly enable or disable these tests. If not set, compute defaults as before. Also consolidate the VCS default heuristics.
* Tests: Add cache entries to control existence of CTest.Update* testsBrad King2022-02-071-52/+75
| | | | | Add undocumented `CMake_TEST_CTestUpdate_*` cache entries to explicitly enable or disable these tests. If not set, compute defaults as before.
* Tests: Make condition for CTest.UpdateCVS match pattern of other toolsBrad King2022-02-071-6/+5
|