summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/CMakeLists.txt
Commit message (Collapse)AuthorAgeFilesLines
* Tests: Clarify RunCMake.XcFramework conditions testing Xcode versionBrad King2023-09-261-1/+1
| | | | | | In commit 7050ac56a1 (macOS: Add support for linking against .xcframework folders, 2023-05-17) used conditions based on the AppleClang compiler version, but we actually want to check the Xcode version.
* Merge topic 'genexp-no-eval'Brad King2023-09-261-0/+1
|\ | | | | | | | | | | | | | | | | 634079b86d cmGeneratorExpressionEvaluator: Short-circuit boolean operators Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: scivision <michael@scivision.dev> Acked-by: Pavel Solodovnikov <hellyeahdominate@gmail.com> Merge-request: !8791
| * cmGeneratorExpressionEvaluator: Short-circuit boolean operatorsMartin Duffy2023-09-131-0/+1
| |
* | OrangeC: Add support for OrangeC compilerDavid Lindauer2023-09-251-0/+1
| | | | | | | | | | | | | | Add compiler information modules. Update the test suite. Fixes: #25032 Co-authored-by: Brad King <brad.king@kitware.com>
* | Tests: Update tests to run in symlinked treeKyle Edwards2023-09-221-0/+2
| |
* | Merge topic 'macOS-system-framework-link'Brad King2023-09-221-3/+4
|\ \ | | | | | | | | | | | | | | | | | | 3bdf95f942 macOS: GNU toolchain: ensure framework, marked as SYSTEM, can be linked Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !8825
| * | macOS: GNU toolchain: ensure framework, marked as SYSTEM, can be linkedMarc Chevrier2023-09-211-3/+4
| | | | | | | | | | | | Fixes: #25263
* | | Ninja: Allow compilation before generation of dependencies' private sourcesMartin Duffy2023-09-201-0/+3
|/ / | | | | | | | | | | | | | | | | | | This requires knowing when a generated header is public, which we can model using file sets. Add policy CMP0154 to treat generated sources as private by default in targets with file sets. Generated public headers can be specified in public file sets. Fixes: #24959 Issue: #15555
* | Merge topic 'mingw-search-prefixes'Brad King2023-09-141-4/+4
|\ \ | | | | | | | | | | | | | | | | | | 5e5132e1b1 MinGW: Search for packages in standard MSYSTEM environment prefixes Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !8796
| * | MinGW: Search for packages in standard MSYSTEM environment prefixesBrad King2023-09-131-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | MSYS2 and similar MinGW/MSYS distributions define development environments with a `MSYSTEM` environment variable. Each such environment has a documented installation prefix for its packages, often provided by a `MSYSTEM_PREFIX` environment variable. Since commit 84a25fc263 (cmake_host_system_information: Add MSYSTEM_PREFIX query, 2023-09-08) we can look up this prefix. Add `$MSYSTEM_PREFIX/local` and `$MSYSTEM_PREFIX` to our system search prefixes when targeting MinGW under `MSYSTEM` environments. This is their equivalent to `/usr/local` and `/usr`, which we search by default on UNIX systems. Issue: #24216
* | | Merge topic 'orkun_21677_16_06_2023'Brad King2023-09-131-0/+2
|\ \ \ | |/ / |/| | | | | | | | | | | | | | | | | | | | | | | 09b650d000 Autogen: Move QtAutoMocDeps tests to RunCMake/Autogen ebc9e448b3 Autogen: Add depfile support for Makefiles e5358b9d8d RunCMake: Add RunCMake_TEST_NOT_EXPECT variables Acked-by: Kitware Robot <kwrobot@kitware.com> Tested-by: buildbot <buildbot@kitware.com> Merge-request: !8570
| * | Autogen: Move QtAutoMocDeps tests to RunCMake/AutogenOrkun Tokdemir2023-09-111-0/+2
| | |
* | | cmake_host_system_information: Add MSYSTEM_PREFIX queryBrad King2023-09-101-0/+3
|/ / | | | | | | | | | | | | Add a query on Windows hosts for the installation prefix of a MSYS or MinGW development environment. Issue: #24216
* | cmExecuteProcessCommand: Replace cmsysProcess with cmUVProcessChainKyle Edwards2023-08-291-0/+1
| |
* | ExternalProject: Enable Make Job Server with Explicit Build CommandChris Mahoney2023-08-151-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | Introduces `BUILD_JOB_SERVER_AWARE` option to `ExternalProject_Add` and `JOB_SERVER_AWARE` to `ExternalProject_Add_Step`. When using an explicit `BUILD_COMMAND` or `COMMAND`, the generated commands won't use `$(MAKE)` thus failing to connect to the outer make's job server. These new options enable explicit job server integration. Co-authored-by: Brad King <brad.king@kitware.com> Fixes: #16273
* | set_tests_properties(): Add DIRECTORY optionKyle Edwards2023-08-111-0/+1
| |
* | Tests/RunCMake/property_init: add skeleton for testingBen Boeckel2023-07-291-0/+1
|/
* macOS: Add support for linking against .xcframework foldersKyle Edwards2023-07-261-0/+17
| | | | Issue: #21752
* exec_program(): Remove by policy CMP0153Kyle Edwards2023-07-251-0/+2
|
* Merge topic 'file-REAL_PATH-relative'Brad King2023-07-241-0/+4
|\ | | | | | | | | | | | | | | 6b5f2dbbfe file(REAL_PATH): resolve symlinks before '..' components Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: buildbot <buildbot@kitware.com> Merge-request: !8605
| * file(REAL_PATH): resolve symlinks before '..' componentsRobert Maynard2023-07-201-0/+4
| | | | | | | | | | | | | | | | Previously REAL_PATH would collapse paths before resolving any symlinks so if `..` crossed a symlink the output from `REAL_PATH` would be wrong. It looked like REAL_PATH did this by mistake since it was a side-effect of ensuring we had an absolute path before resolving symlinks.
* | Merge topic 'command-job-server-aware'Brad King2023-07-201-1/+2
|\ \ | |/ |/| | | | | | | | | | | 95941fd990 add_custom_{target,command}: Add argument JOB_SERVER_AWARE Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: buildbot <buildbot@kitware.com> Merge-request: !8547
| * add_custom_{target,command}: Add argument JOB_SERVER_AWAREChris Mahoney2023-07-191-1/+2
| | | | | | | | Issue: #16273
* | Merge topic 'support_nvhpc_versions_without_isystem'Brad King2023-06-261-1/+1
|\ \ | |/ |/| | | | | | | | | | | f73ae7c510 NVHPC: Support nvfortran versions that don't support isystem Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: buildbot <buildbot@kitware.com> Merge-request: !8588
| * NVHPC: Support nvfortran versions that don't support isystemRobert Maynard2023-06-231-1/+1
| | | | | | | | Fixes: #25019
* | FindPython: add capability to select python version for the testsMarc Chevrier2023-06-151-1/+2
|/
* Tests: Require git to enable RunCMake.CMP0150 testBrad King2023-06-121-1/+4
| | | | | | The test added by commit 550f63447d (ExternalProject/FetchContent: Support relative remote URLs, 2023-04-21, v3.27.0-rc1~156^2) covers Git-specific functionality, and requires a `git` tool to be available.
* Test: Generate pseudo linters generator independentOrkun Tokdemir2023-06-021-4/+6
| | | | Fixes: #24968
* Merge topic 'skip-linting'Brad King2023-05-181-0/+4
|\ | | | | | | | | | | | | | | | | | | | | 775c369420 Autogen: set SKIP_LINTING ON for generated files b480315e0c TargetGenerator: Add SKIP_LINTING source property 993dde925f TargetGenerator: Factor out generation of code check rules 023af4ab2f Improve Const Correctness Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: buildbot <buildbot@kitware.com> Merge-request: !8467
| * Autogen: set SKIP_LINTING ON for generated filesOrkun Tokdemir2023-05-161-0/+4
| | | | | | | | Fixes: #19772
* | Tests: Split some RunCMake.XcodeProject cases into a separate testBrad King2023-05-151-0/+1
|/ | | | | | The `RunCMake.XcodeProject` has many cases and occasionally fails due to timeout. Move iOS and other device-specific cases to a new `RunCMake.XcodeProject-Device` test.
* Tests: Teach ISPC tests to run on macOS arm64 hostBrad King2023-05-101-0/+1
|
* Tests: Fix RunCMake.XcodeProject XcodeSchemaGeneration case on arm64Brad King2023-05-101-0/+1
| | | | | Explicitly specify the xcodebuild scheme destination architecture to match the host.
* Ninja: Fix Fortran INCLUDE directive dependencies when not preprocessingBrad King2023-05-091-0/+4
| | | | | | | Since commit b0a6161190 (Fortran: Add Fortran_PREPROCESS property, 2020-04-24, v3.18.0-rc1~116^2~3), if `Fortran_PREPROCESS` is `OFF`, the Ninja generator does not properly detect dependencies on sources loaded via the Fortran INCLUDE directive. Fix this and add a test.
* Tests: Move `CTestTestZeroTimeout` into `RunCMake.CTestTimeout`Brad King2023-05-041-1/+4
|
* Link step: use linker dependency linker fileMarc Chevrier2023-05-031-0/+1
| | | | | | Based on work done by @ben.boeckel (!8051) Fixes: #22217
* Merge topic 'ExternalProject-relative-git-urls'Craig Scott2023-04-271-0/+1
|\ | | | | | | | | | | | | 550f63447d ExternalProject/FetchContent: Support relative remote URLs Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !7988
| * ExternalProject/FetchContent: Support relative remote URLsChris Wright2023-04-261-0/+1
| | | | | | | | | | | | | | | | | | Teach `ExternalProject_Add` and `FetchContent_Declare` to resolve relative remote URLs provided via `GIT_REPOSITORY`. Add policy CMP0150 to maintain compatibility. Fixes: #24211 Co-Authored-By: Craig Scott <craig.scott@crascit.com>
* | GenEx LIST: list operationsMarc Chevrier2023-04-161-0/+1
|/ | | | Fixes: #24550, #24547
* Tests: Fix RunCMake infrastructure for LCC and CMP0129Brad King2023-04-031-0/+9
| | | | | | | | | | Since commit 3958ed878f (LCC: Add policy CMP0129 regarding interpreting LCC as GNU, 2021-10-19, v3.23.0-rc1~508^2) we intended to enable policy `CMP0129` in RunCMake tests via `-DCMAKE_POLICY_DEFAULT_CMP0129=NEW`. Fix the condition activating that to check `CMAKE_C_COMPILER_ID` where it is always available. Remove now-unnecessary CMP0129 settings in RunCMake cases.
* file(GET_RUNTIME_DEPENDENCIES): Preserve casing for Windows PE binariesChristian Heimlich2023-03-231-0/+1
| | | | | | | | | | | | | | | | | | | | For Windows PE files the `file(GET_RUNTIME_DEPENDENCIES)` command converts the name of all DLLs found during binary scanning to lowercase in order to simplify the syntax requirements of its regex filters; however, this has the side-effect of causing all DLL paths returned via RESOLVED_DEPENDENCIES_VAR to be in lowercase, regardless of their actual casing. Instead, respect the original casing as closely as possible when returning resolved dependencies after all filters have been passed: When evaluating a Windows PE format binary on a non-Windows host the casing of dependencies recorded within the binary are used. When the host is running Windows, the actual casing of the dependencies on-disk are used instead. Fixes: #23091
* Merge topic 'Apple-handle-Text-Stubs'Brad King2023-03-021-0/+2
|\ | | | | | | | | | | | | | | | | ede33f30cf Apple: Handle generation and comsuption of text-based stubs (.tbd files) fcbd723a50 Enhance support functions Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: Brad King <brad.king@kitware.com> Merge-request: !8204
| * Apple: Handle generation and comsuption of text-based stubs (.tbd files)Marc Chevrier2023-03-011-0/+2
| | | | | | | | Fixes: #24123
* | Add option to add SOVERSION to DLL namesRalf Habacker2023-02-271-1/+1
| | | | | | | | | | | | | | Add variable/target property `[CMAKE_]DLL_NAME_WITH_SOVERSION`. Fixes: #24251 Signed-off-by: Ralf Habacker <ralf.habacker@freenet.de>
* | Tests: Rename RunCMake.{ArtifactOutputDirs => TargetArtifacts}Brad King2023-02-241-2/+1
|/ | | | Generalize the name so we can add other kinds of artifact checks.
* Tests: Add dedicated RunCMake.ExtraGenerators testBrad King2023-02-131-0/+4
| | | | | | The `Simple_${extraGenerator}` tests do not actually need to compile because they only smoke test CMake's generation of the extra project files.
* Tests: Add test for file(DOWNLOAD) with TLS_VERIFYscivision2023-02-101-1/+9
| | | | | | | | | | | Occasionally curl updates introduce errors in https verification. Add an explicit test for this capability, activated by an undocumented option that we can use in CI to specify a URL to test. Co-authored-by: Brad King <brad.king@kitware.com> Fixes: #24405 Issue: #24147 Issue: #24398
* Tests: Extend RunCMake.Ninja ShowIncludes cases to cover more languagesBrad King2023-01-281-0/+3
| | | | Add cases for English, French, German, and Japanese.
* Xcode: Inherit Swift flags and compilation conditionsRoss Kilgariff2023-01-251-1/+2
| | | | | | | | Extend the change from commit dfaf55fbfd (Xcode: add extra '$(inherited)' entries using InheritBuildSettingAttribute, 2021-05-03, v3.21.0-rc1~182^2) to cover Swift flags and compilation conditions, allowing CocoaPods and CMake to interoperate when used in the same project.
* COMPILE_DEFINITIONS property: ensure leading -D is removed in all casesMarc Chevrier2022-12-131-0/+1
| | | | Fixes: #24186