summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake
Commit message (Collapse)AuthorAgeFilesLines
...
* | | | Merge topic 'xcode-ios-objects'Brad King2022-10-042-0/+30
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 25630863ea Tests: Add case covering XCODE_EMIT_EFFECTIVE_PLATFORM_NAME=OFF for iOS Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !7740
| * | | | Tests: Add case covering XCODE_EMIT_EFFECTIVE_PLATFORM_NAME=OFF for iOSBrad King2022-10-032-0/+30
| |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | This use case was fixed by commit a7fb4bc475 (Xcode: Set build product locations using CONFIGURATION_BUILD_DIR, 2022-09-28). Add a test to verify the fix. Fixes: #23970
* | | | Merge topic 'try_compile-rename-source_from_arg'Brad King2022-10-046-6/+6
|\ \ \ \ | |/ / / |/| | | | | | | | | | | | | | | | | | | | | | | 0f28653ba9 try_compile: Rename SOURCE_FROM_ARG -> SOURCE_FROM_CONTENT Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: buildbot <buildbot@kitware.com> Merge-request: !7733
| * | | try_compile: Rename SOURCE_FROM_ARG -> SOURCE_FROM_CONTENTMatthew Woehlke2022-09-306-6/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Change the SOURCE_FROM_ARG keyword to try_compile to SOURCE_FROM_CONTENT (which we can do because it was recently added and hasn't been in a release yet). The new name should be clearer as to what it does, and also more consistent with the CONTENT arguments to some other commands. Also, fix a typo in an error message.
* | | | Merge topic 'ci-xcode-14.0'Brad King2022-10-035-29/+53
|\ \ \ \ | | |/ / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | 9cdf4c9be4 gitlab-ci: update macOS jobs to use Xcode 14.0 5d2c2b2558 Tests: Update RunCMake.XcodeProject iOS cases for Xcode 14.0 12c6fec6b4 Xcode: Drop CMAKE_INTDIR= definition in Swift targets Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !7732
| * | | Tests: Update RunCMake.XcodeProject iOS cases for Xcode 14.0Brad King2022-09-305-29/+53
| | | | | | | | | | | | | | | | Issue: #24011
* | | | Merge topic 'xcode-build-layout'Brad King2022-09-304-0/+11
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | d0a6ebf57b Xcode: Fix "clean" operation under the "new build system" dc5fc898f6 Xcode: Set object file locations using TARGET_TEMP_DIR a7fb4bc475 Xcode: Set build product locations using CONFIGURATION_BUILD_DIR 6883b82124 cmGlobalXCodeGenerator: Remove unused local variable settings Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !7730
| * | | | Xcode: Fix "clean" operation under the "new build system"Brad King2022-09-294-0/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Previously we set `SYMROOT` to tell Xcode where to place the build products. However, the "clean" operation in the Xcode "new build system" expects that only Xcode creates the `SYMROOT` directory or contents inside it. Since we create that directory, "clean" fails. We now explicitly set `CONFIGURATION_BUILD_DIR` and `TARGET_TEMP_DIR` instead of letting Xcode compute their values from `SYMROOT`, so we no longer need to set the latter. Drop the now-unnecessary `SYMROOT`. Fixes: #22550
* | | | | Tests: Test more CMakeTest*Compiler.cmake fallbacksBrad King2022-09-2910-0/+46
| |_|/ / |/| | | | | | | | | | | | | | | Extend the test added by commit f891a75d5c (Tests: Test CMakeTest*Compiler.cmake fallbacks, 2022-09-27) to cover more languages.
* | | | Merge topic 'compiler-tests'Brad King2022-09-2911-0/+36
|\ \ \ \ | |/ / / |/| | | | | | | | | | | | | | | | | | | | | | | f891a75d5c Tests: Test CMakeTest*Compiler.cmake fallbacks Acked-by: Kitware Robot <kwrobot@kitware.com> Tested-by: buildbot <buildbot@kitware.com> Merge-request: !7722
| * | | Tests: Test CMakeTest*Compiler.cmake fallbacksMatthew Woehlke2022-09-2811-0/+36
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add tests that explicitly test the fallback tests of the modules which test for a functional [Obj]C[xx] compiler, bypassing the ABI tests. Due to the ABI test short-circuiting added by commit 1d21dd0f7c (enable_language: Assume compiler works if ABI detection compiles, 2020-05-25, v3.18.0-rc1~93^2), this logic is likely not getting tested otherwise.
* | | | Merge topic 'vs11-deprecate'Brad King2022-09-284-0/+12
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 6c1337cb79 Deprecate Visual Studio 11 2012 generator 5faf145a5b Tests: Drop unused files from RunCMake.CommandLine Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !7720
| * | | | Deprecate Visual Studio 11 2012 generatorBrad King2022-09-274-0/+12
| | | | | | | | | | | | | | | | | | | | | | | | | Update documentation to mark the generator deprecated. Add a warning at the end of generation plus an option to turn off the warning.
| * | | | Tests: Drop unused files from RunCMake.CommandLineBrad King2022-09-272-0/+0
| |/ / / | | | | | | | | | | | | | | | | Remove files missed by commit 8d6f015d59 (Drop Visual Studio 10 2010 generator, 2022-09-26).
* | | | Merge topic 'cmake-presets-workflow'Brad King2022-09-2850-0/+514
|\ \ \ \ | |/ / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | 374d82bbcd cmake: Add --workflow mode e316812884 CMakePresets.json: Add workflow presets to schema Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: buildbot <buildbot@kitware.com> Merge-request: !7711
| * | | cmake: Add --workflow modeKyle Edwards2022-09-2750-0/+514
| | | | | | | | | | | | | | | | Fixes: #23118
* | | | Merge topic 'remove-vs10-generator'Brad King2022-09-273-14/+1
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 8d6f015d59 Drop Visual Studio 10 2010 generator Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !7718
| * | | | Drop Visual Studio 10 2010 generatorBrad King2022-09-263-14/+1
| |/ / / | | | | | | | | | | | | This generator has been deprecated since CMake 3.22. Remove it.
* | | | Merge topic 'add_subdirectory_system'Brad King2022-09-2731-0/+118
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2eb30a7036 add_subdirectory: Add SYSTEM option Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !7399
| * | | | add_subdirectory: Add SYSTEM optionDa Quexian2022-09-2631-0/+118
| | | | | | | | | | | | | | | | | | | | | | | | | Fixes: #22401 Signed-off-by: Da Quexian <daquexian566@gmail.com>
* | | | | Merge topic 'ctest_ninja_full_output'Brad King2022-09-276-1/+43
|\ \ \ \ \ | |_|/ / / |/| | / / | | |/ / | |/| | | | | | | | | | | | | | 65260d6c1e ctest: only report make-level errors when no others are found Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: buildbot <buildbot@kitware.com> Merge-request: !7710
| * | | ctest: only report make-level errors when no others are foundZack Galbreath2022-09-266-1/+43
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In commit ab9ad2a6a0 (ctest: report make-level errors to CDash when using launchers, 2020-09-24, v3.19.0-rc1~84^2~1) we taught CTest to capture and report errors from the build command when using launchers. This had the unintended side effect of reporting a separate build error containing the full build output when the build command returns non-zero. To fix this problem, we now only report build command errors from CTest launchers when no other more specific build errors are found. Fixes: #23991
* | | | Merge topic 'cmake-presets-package-more-doc-fixes'Brad King2022-09-266-0/+44
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 33b1338a92 Tests: Add test for --list-presets=all 4328deb618 Tests: Add test for cpack --list-presets e909384062 Help: Add package preset to example presets file 16a24b0ab0 Help: List packagePresets field in cmake-presets.7 Acked-by: Kitware Robot <kwrobot@kitware.com> Tested-by: buildbot <buildbot@kitware.com> Merge-request: !7707
| * | | | Tests: Add test for --list-presets=allKyle Edwards2022-09-232-0/+19
| | | | |
| * | | | Tests: Add test for cpack --list-presetsKyle Edwards2022-09-234-0/+25
| | | | |
* | | | | Merge topic 'try_compile-source-from'Brad King2022-09-2313-0/+29
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 611d801790 try_compile: Add SOURCE_FROM_FILE a04eaf6742 Tests: Clean up and simplify TryCompile tests cb14ae2b87 try_compile: Add SOURCE_FROM_{ARG,VAR} Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: buildbot <buildbot@kitware.com> Merge-request: !7700
| * | | | | try_compile: Add SOURCE_FROM_FILEMatthew Woehlke2022-09-224-0/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add ability to copy try_compile (and try_run) source files from arbitrary locations into the operation directory. This is included for the sake of completion and consolidation, although use cases which actually require this may be rare.
| * | | | | try_compile: Add SOURCE_FROM_{ARG,VAR}Matthew Woehlke2022-09-2210-0/+22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add ability to "feed" try_compile (and try_run) sources more directly, either from literal content, or from a CMake variable which contains literal content. This saves the user from needing a separate step to write the content to a file, and allows for the sources to only exist in the scratch directory.
* | | | | | Merge topic 'modernize-build-self'Brad King2022-09-232-7/+11
|\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
| * | | | | | Build: Modernize some `foreach` calls to use `IN LISTS`/`IN ITEMS`Alex Turbov2022-09-222-7/+11
| | |/ / / / | |/| | | |
* | | | | | Merge topic 'cdo-consider-dots'Brad King2022-09-233-0/+6
|\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | df377a22dd CMakeDependentOption: allow in depends the use of . Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: buildbot <buildbot@kitware.com> Merge-request: !7701
| * | | | | | CMakeDependentOption: allow in depends the use of .Vicente Adolfo Bolea Sanchez2022-09-213-0/+6
| |/ / / / /
* | | | | | Genex LINK_LIBRARY: Add support for framework with postfixMarc Chevrier2022-09-213-0/+42
|/ / / / /
* | | | | Merge topic 'try_compile-more-consistent-errors'Brad King2022-09-202-2/+2
|\ \ \ \ \ | |/ / / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | 30a234d275 try_compile: Improve error message consistency Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: buildbot <buildbot@kitware.com> Merge-request: !7696
| * | | | try_compile: Improve error message consistencyMatthew Woehlke2022-09-162-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | Tweak some error messages from try_compile (and try_run) to be more consistent with each other.
* | | | | Merge topic 'add-try_compile-test-documentation'Brad King2022-09-192-0/+18
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | e933fccc7e Tests: document try_{compile,run} old/new signature testing Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: buildbot <buildbot@kitware.com> Merge-request: !7681
| * | | | | Tests: document try_{compile,run} old/new signature testingMatthew Woehlke2022-09-152-0/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add a brief documentation blurb to the try_compile and try_run test sets on writing tests for both "old" and "new" signatures.
* | | | | | Merge topic 'improve-try_compile-arg-error'Brad King2022-09-193-3/+3
|\ \ \ \ \ \ | |_|/ / / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | f976800577 try_compile: More useful error if insufficient arguments Acked-by: Kitware Robot <kwrobot@kitware.com> Tested-by: buildbot <buildbot@kitware.com> Merge-request: !7682
| * | | | | try_compile: More useful error if insufficient argumentsMatthew Woehlke2022-09-153-3/+3
| |/ / / / | | | | | | | | | | | | | | | | | | | | Tweak try_compile and try_run to give a more informative error (rather than "unknown error") when given an insufficient number of arguments.
* | | | | Merge topic 'try_compile-new-project-signature'Brad King2022-09-1619-0/+51
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 56ae40cc59 try_compile: Add PROJECT keyword-dispatched signature Acked-by: Kitware Robot <kwrobot@kitware.com> Tested-by: buildbot <buildbot@kitware.com> Merge-request: !7677
| * | | | | try_compile: Add PROJECT keyword-dispatched signatureMatthew Woehlke2022-09-1419-0/+51
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Introduce a new signature for the project flavor of try_compile (and try_run) which removes the `bindir` argument and adds a required PROJECT tag. This is similar to the SOURCES flavor added by commit aa9220d3 (try_compile: Add keyword-dispatched signature, 2022-09-02).
* | | | | | Merge topic 'xcode-lib-dirs'Brad King2022-09-163-0/+25
|\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | d4cc39842e Xcode: Do not append per-config suffixes to library search paths Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !7672
| * | | | | | Xcode: Do not append per-config suffixes to library search pathsMikko Sivulainen2022-09-153-0/+25
| |/ / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add policy `CMP0142` to remove the automatic addition of the `$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME)` suffix in a compatible way. Fixes: #21757
* | | | | | Merge topic 'fphsa-no-version-var'Brad King2022-09-163-0/+5
|\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 07f0a78874 FPHSA: Fix regression when VERSION_VAR is missing Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !7680
| * | | | | | FPHSA: Fix regression when VERSION_VAR is missingBrad King2022-09-153-0/+5
| | |/ / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | If a package is found but FPHSA is called by the find module without a `VERSION_VAR`, and the `find_package` call specifies a version, we have previously accepted the package as found. This was accidentally regressed by commit 8f50f135ae (FPHSA: Improve error message when VERSION_VAR is empty or has been unset(), 2022-08-01). Restore it and add a test case.
* | | | | | cmake --list-presets: List package as a valid optionKyle Edwards2022-09-153-0/+5
|/ / / / /
* | | | | Merge topic 'fix-try_compile-tests'Brad King2022-09-153-3/+9
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 4ecbf1f938 Tests: Fix recently added tests Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: buildbot <buildbot@kitware.com> Merge-request: !7678
| * | | | | Tests: Fix recently added testsMatthew Woehlke2022-09-143-3/+9
| |/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | Fix the tests added by commit 0c141b03 (try_compile: Record output location instead of reverse computing it, 2022-08-31), which were added as old-and-new-signature tests but only used the old signature.
* | | | | Merge topic 'link-framework-with-multi-config-postfix'Brad King2022-09-151-0/+5
|\ \ \ \ \ | |/ / / / |/| / / / | |/ / / | | | | | | | | | | | | fc06450ff4 Apple: Fix regression when linking a framework with postfix Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !7675
| * | | Apple: Fix regression when linking a framework with postfixMarc Chevrier2022-09-141-0/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Fix a regression caused by commit 40178f3c90 (cmGlobalGenerator: Add helper to split framework path, 2022-02-10, v3.24.0-rc1~661^2~1). Fixes: #23961