summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake
Commit message (Collapse)AuthorAgeFilesLines
* Merge topic 'vs-sdk-selection'Brad King2023-08-1010-51/+73
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | d5118ed2e5 Merge branch 'backport-vs-sdk-selection' into vs-sdk-selection 89b611ab32 VS: Select latest Windows SDK even when targeting Windows 8.1 and below ae97d82e83 VS: Teach CMAKE_GENERATOR_PLATFORM to support Windows 8.1 SDK selection 15ff89654b VS: Teach CMAKE_GENERATOR_PLATFORM to use Windows 10 SDKs for older versions bba1a23da9 VS: Consolidate Windows SDK major version selection dispatch 209973e510 VS: Do not print empty Windows SDK version when none is selected ec6dd77053 Tests: Remove redundant condition in RunCMake.GeneratorPlatform test 4776a584ad Help: Add 3.27 release note on VS default SDK selection Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !8697
| * Merge branch 'backport-vs-sdk-selection' into vs-sdk-selectionBrad King2023-08-1010-51/+73
| |\
| | * VS: Select latest Windows SDK even when targeting Windows 8.1 and belowBrad King2023-08-102-5/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | The policy added by commit f90c8ab54e (VS: Select latest available Windows SDK version by default, 2023-04-03, v3.27.0-rc1~206^2~1) applied only when targeting Windows 10+. Apply it to older versions too. Fixes: #25170 Issue: #16202
| | * VS: Teach CMAKE_GENERATOR_PLATFORM to support Windows 8.1 SDK selectionBrad King2023-08-101-0/+11
| | | | | | | | | | | | | | | | | | | | | Honor an explicit `version=8.1` field value regardless of the Windows target version. Issue: #25170
| | * VS: Teach CMAKE_GENERATOR_PLATFORM to use Windows 10 SDKs for older versionsBrad King2023-08-109-24/+33
| | | | | | | | | | | | | | | | | | | | | Honor an explicit `version=` field selecting a Windows 10 SDK regardless of the Windows target version. Issue: #25170
| | * Tests: Remove redundant condition in RunCMake.GeneratorPlatform testBrad King2023-08-101-23/+21
| | |
* | | Merge topic 'OPTIMIZE_DEPENDENCIES-runtime-targets'Brad King2023-08-106-0/+46
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | 84eae7aeda OPTIMIZE_DEPENDENCIES: Skip order-only deps for non-linking targets Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !8685
| * | | OPTIMIZE_DEPENDENCIES: Skip order-only deps for non-linking targetsCraig Scott2023-08-096-0/+46
| | | | | | | | | | | | | | | | Fixes: #21517
* | | | Merge topic 'test-cxxmodules-generated-fix'Brad King2023-08-102-5/+9
|\ \ \ \ | |_|/ / |/| | | | | | | | | | | | | | | | | | | | | | | 1e9ec93f48 Tests/RunCMake/CXXModules: actually generate the source at build time Acked-by: Kitware Robot <kwrobot@kitware.com> Tested-by: buildbot <buildbot@kitware.com> Merge-request: !8693
| * | | Tests/RunCMake/CXXModules: actually generate the source at build timeBen Boeckel2023-08-072-5/+9
| | | | | | | | | | | | | | | | | | | | This tests what is intended to be tested (sources that do not exist until after the configure has run).
* | | | Merge topic 'file-GENERATE-arg-parsing'Brad King2023-08-084-0/+10
|\ \ \ \ | |/ / / |/| | / | | |/ | |/| | | | | | | | | | 88f90a72f1 file(GENERATE): Restore INPUT|CONTENT parse checking Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: buildbot <buildbot@kitware.com> Merge-request: !8694
| * | file(GENERATE): Restore INPUT|CONTENT parse checkingEvan Wilde2023-08-074-0/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Refactoring in commit bff468c988 (cmFileCommand: Use cm::optional for keyword argument presence, 2022-06-30, v3.25.0-rc1~512^2) accidentally broke the check that the input argument is either `INPUT` or `CONTENT`. The check is supposed to fail when arguments are passed in the wrong order. For example: file(GENERATE OUTPUT ... TARGET <target> CONTENT <content>) Prior to this fix, the input method would be CONTENT, but because the first parsed keyword is not `CONTENT`, `inputIsContent` would be false. The first parsed keyword isn't INPUT either, so we would not continue into the error condition. CMake would then try to handle this as an input file, when there isn't one, resulting in uninitialized memory usage and segfaults or corruption later on. Fixes: #25169
* | | Merge topic 'cxxmodules-try-compile'Brad King2023-08-0719-10/+86
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | be53c75852 cmExperimental: recycle the C++ modules API UUID deb1c3cbd5 cmCoreTryCompile: forward module-related binutils variables b768d293c5 cmCoreTryCompile: use the source type context for source files 93993c7ad4 cmArgumentParser: support storing a context value with parsing c9ca5f6326 cmCoreTryCompile: parse `SOURCES_TYPE` argument 07551f35de cmCoreTryCompile: use `target_sources` for `try_compile` targets aad9033b56 cmExperimental: support forwarding associated variables to `try_compile` f6cf433256 cmExperimental: only forward C++ module support to non-ABI checks ... Acked-by: Kitware Robot <kwrobot@kitware.com> Tested-by: buildbot <buildbot@kitware.com> Merge-request: !8639
| * | | cmExperimental: recycle the C++ modules API UUIDBen Boeckel2023-07-3110-10/+10
| | | | | | | | | | | | | | | | `try_compile` and `try_run` now support C++ modules.
| * | | cmCoreTryCompile: use the source type context for source filesBen Boeckel2023-07-319-0/+76
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Also add a test to `RunCMake/CXXModules` to test `try_compile` with C++ modules. Fixes: #25097
* | | | Merge topic 'set-CACHE-diagnostics'Brad King2023-08-074-0/+25
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 20c23518d9 set: Improve diagnostics for CACHE mode Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: buildbot <buildbot@kitware.com> Merge-request: !8679
| * | | | set: Improve diagnostics for CACHE modeJeremy2023-08-024-0/+25
| | |_|/ | |/| | | | | | | | | | | | | | | | | | Improve `set()` diagnostics to be more specific than given invalid arguments for CACHE mode
* | | | Merge branch 'backport-revert-vs-show-cmake-files'Brad King2023-08-027-255/+11
|\ \ \ \ | |/ / / |/| | / | | |/ | |/|
| * | VS: Revert "Add CMake input files to ZERO_CHECK"Brad King2023-08-027-255/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Since commit df58dbb0e9 (VS: Add CMake input files to ZERO_CHECK, 2023-03-19, v3.27.0-rc1~157^2), projects that specify the same file both as input to `configure_file` and as the `MAIN_DEPENDENCY` of a custom command fail to configure. Revert the change pending further investigation. Add a test case demonstrating the problem. Issue: #24557 Fixes: #25149
* | | Merge topic 'xcode-embed-resources'Brad King2023-08-018-2/+49
|\ \ \ | |_|/ |/| | | | | | | | | | | | | | | | | | | | e40d2cb3af Xcode: Add embed resources support Acked-by: Kitware Robot <kwrobot@kitware.com> Tested-by: buildbot <buildbot@kitware.com> Acked-by: Deal <halx99@live.com> Merge-request: !8632
| * | Xcode: Add embed resources supporthalx992023-07-318-2/+49
| | |
* | | Tests/RunCMake/property_init: test 'with_exports' propertiesBen Boeckel2023-07-292-0/+52
| | |
* | | Tests/RunCMake/property_init: test 'with_commands' propertiesBen Boeckel2023-07-292-0/+14
| | |
* | | Tests/RunCMake/property_init: test 'with_artifact' propertiesBen Boeckel2023-07-292-0/+20
| | |
* | | Tests/RunCMake/property_init: test 'shared_library' propertiesBen Boeckel2023-07-292-0/+13
| | |
* | | Tests/RunCMake/property_init: test 'pic_targets' propertiesBen Boeckel2023-07-292-0/+22
| | |
* | | Tests/RunCMake/property_init: test 'normal' propertiesBen Boeckel2023-07-292-0/+11
| | |
* | | Tests/RunCMake/property_init: test 'non_imported' propertiesBen Boeckel2023-07-292-0/+12
| | |
* | | Tests/RunCMake/property_init: test 'normal_non_imported' propertiesBen Boeckel2023-07-292-0/+10
| | |
* | | Tests/RunCMake/property_init: test 'linkable' propertiesBen Boeckel2023-07-292-0/+13
| | |
* | | Tests/RunCMake/property_init: test 'library_with_artifact' propertiesBen Boeckel2023-07-292-0/+11
| | |
* | | Tests/RunCMake/property_init: add `per_config` table builder helperBen Boeckel2023-07-291-0/+35
| | |
* | | Tests/RunCMake/property_init: test 'imported' propertiesBen Boeckel2023-07-292-0/+10
| | |
* | | Tests/RunCMake/property_init: test 'executable' propertiesBen Boeckel2023-07-292-0/+26
| | |
* | | Tests/RunCMake/property_init: test 'can_compile' propertiesBen Boeckel2023-07-292-0/+275
| | |
* | | Tests/RunCMake/property_init: test 'always' propertiesBen Boeckel2023-07-292-0/+17
| | | | | | | | | | | | All targets get these targets initialized.
* | | Tests/RunCMake/property_init: add a function to test propertiesBen Boeckel2023-07-291-0/+57
| | | | | | | | | | | | | | | | | | | | | | | | | | | This function consumes a property table and tests against every kind of target: those for which the initialization happens and those that should ignore them. Also add a function that can build the pairs of target type lists required.
* | | Tests/RunCMake/property_init: add functions to make example targetsBen Boeckel2023-07-294-1/+58
| | |
* | | Tests/RunCMake/property_init: add a function to parse property tablesBen Boeckel2023-07-291-0/+29
| | | | | | | | | | | | | | | | | | The tables will be triples of property / value / alias value. Parsing is a bit tricky, but is easier when `foreach (IN ZIP_LISTS)` with the values in their distinct list.
* | | Tests/RunCMake/property_init: add a function to check a propertyBen Boeckel2023-07-291-0/+24
| | |
* | | Tests/RunCMake/property_init: add skeleton for testingBen Boeckel2023-07-293-0/+8
| | |
* | | find_library(): Add support for .xcframeworkKyle Edwards2023-07-282-0/+15
| | | | | | | | | | | | Issue: #21752
* | | Merge topic 'xcframework-target-link-libraries'Kyle Edwards2023-07-2775-0/+275
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | 7050ac56a1 macOS: Add support for linking against .xcframework folders 93ed53790c bootstrap: Unconditionally build libjsoncpp Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !8619
| * | | macOS: Add support for linking against .xcframework foldersKyle Edwards2023-07-2675-0/+275
| | | | | | | | | | | | | | | | Issue: #21752
* | | | Merge topic 'jobserver-fix'Brad King2023-07-263-13/+50
|\ \ \ \ | |/ / / |/| | | | | | | | | | | | | | | | | | | | | | | 3825d6ec98 add_custom_{command,target}: Teach JOB_SERVER_AWARE about WORKING_DIRECTORY Acked-by: Kitware Robot <kwrobot@kitware.com> Tested-by: buildbot <buildbot@kitware.com> Merge-request: !8644
| * | | add_custom_{command,target}: Teach JOB_SERVER_AWARE about WORKING_DIRECTORYChris Mahoney2023-07-253-13/+50
| | | | | | | | | | | | | | | | Issue: #16273
* | | | exec_program(): Remove by policy CMP0153Kyle Edwards2023-07-2512-0/+32
| | | |
* | | | Merge topic 'fix-ctest-timeout-regression'Brad King2023-07-252-0/+13
|\ \ \ \ | | |_|/ | |/| | | | | | | | | | | | | | | | | | | | | | 0e8584c89c CTest: Fix regression in calculating test timeout Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: buildbot <buildbot@kitware.com> Merge-request: !8647
| * | | CTest: Fix regression in calculating test timeoutKyle Edwards2023-07-242-0/+13
| | | | | | | | | | | | | | | | Fixes: #25120
* | | | Merge topic 'file-REAL_PATH-relative'Brad King2023-07-2411-0/+89
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 6b5f2dbbfe file(REAL_PATH): resolve symlinks before '..' components Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: buildbot <buildbot@kitware.com> Merge-request: !8605