summaryrefslogtreecommitdiffstats
path: root/Help
Commit message (Collapse)AuthorAgeFilesLines
* find_(library|file|path): Drop PATH-derived search prefixesBrad King2023-09-146-11/+35
| | | | | | | | | | | | | | | | | | | | | | | | | | Since commit ffc06c1239 (Teach find_(library|file|path) to get prefixes from PATH, 2015-02-18, v3.3.0-rc1~430^2) we search in `<prefix>/include` and `<prefix>/lib` directories for prefixes with `bin` directories in the `PATH` environment variable. The motivation was to search the installation prefixes of MSYS and MinGW development environments automatically. This behavior can search undesired prefixes that happen to be in the `PATH` for unrelated reasons. It was reverted for non-Windows hosts within a year by commit b30b32a493 (Drop find_(library|file|path) prefixes from PATH on non-Windows, 2016-05-09, v3.6.0-rc1~82^2) but was kept on Windows hosts to support its motivating use case. However, similar problems have since been observed on Windows. For example, commit 955d6245c1 (MSVC: Revert "Teach find_library to consider the 'libfoo.a' naming convention", 2022-11-28, v3.25.1~6^2) was primarily due to undesired discovery of libraries in `PATH`-derived prefixes. Since commit 5e5132e1b1 (MinGW: Search for packages in standard MSYSTEM environment prefixes, 2023-09-11) we search MSYS and MinGW environments' prefixes explicitly, so `PATH`-derived prefixes are no longer needed for the original motivating use case. Fixes: #24216
* Merge branch 'release-3.27'Brad King2023-09-141-2/+2
|\
| * CMake 3.27.5v3.27.5Brad King2023-09-141-2/+2
| |
* | Merge topic 'mingw-search-prefixes'Brad King2023-09-142-0/+12
|\ \ | | | | | | | | | | | | | | | | | | 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-132-0/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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 'presets-schema'Brad King2023-09-123-32/+69
|\ \ \ | |/ / |/| | | | | | | | | | | | | | | | | f1a7179520 presets: Add $schema property to JSON schema f83771dfce presets: Add missing spaces in JSON schema Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !8777
| * | presets: Add $schema property to JSON schemaChenMoFeiJin2023-09-123-0/+37
| | | | | | | | | | | | | | | | | | | | | Many modern code editors have support for JSON Schema. When you specify the `$schema` property in a JSON file, the editor can provide features like auto-completion, error checking, etc., which can improve your efficiency when writing and modifying the `CMakePresets.json` file.
| * | presets: Add missing spaces in JSON schemaChenMoFeiJin2023-09-071-32/+32
| | |
* | | Merge topic 'host-msystem-prefix'Brad King2023-09-112-0/+13
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 84a25fc263 cmake_host_system_information: Add MSYSTEM_PREFIX query cdcff0a0f0 cmCMakeHostSystemInformationCommand: Clarify function names and roles Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: buildbot <buildbot@kitware.com> Merge-request: !8788
| * | | cmake_host_system_information: Add MSYSTEM_PREFIX queryBrad King2023-09-102-0/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Add a query on Windows hosts for the installation prefix of a MSYS or MinGW development environment. Issue: #24216
* | | | Help: Document if() comparison number formatBrad King2023-09-081-10/+10
|/ / / | | | | | | | | | Fixes: #25237
* | | Tutorial: Fix-up typos and inconsistenciesbetsy.mcphail2023-09-0713-17/+36
|/ / | | | | | | | | | | | | * Fix typo in Step 2 * Fix incorrect code referenced in Step 3, TODO 7. Update comments in MathFunctions/CMakeLists.txt to unique strings. * Resolve inconsistencies between steps in MathFunctions/CMakeLists.txt
* | Merge topic 'xcode-no-legacy-buildsystem'Brad King2023-09-062-1/+10
|\ \ | | | | | | | | | | | | | | | | | | b78a14e204 Xcode: reject legacy buildsystem for Xcode 14 Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !8762
| * | Xcode: reject legacy buildsystem for Xcode 14Gregor Jasny2023-08-312-1/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | With Xcode 14 support for the Legacy Build System has been removed and the BuildSystemType in the WorkspaceSettings is ignored. If CMake still generates projects targeted to the Lecacy Build System the build preparation phase will likely fail because Xcode for example misses any declared outputs from script invocations. This is a hard to debug problem and CMake should reject the invalid configuration instead.
* | | Merge topic 'doc-msvc-debug-format'Brad King2023-09-061-0/+2
|\ \ \ | | |/ | |/| | | | | | | | | | | | | 91dc94c4ac Help: MSVC_DEBUG_INFORMATION_FORMAT is initialized from associated variable Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !8770
| * | Help: MSVC_DEBUG_INFORMATION_FORMAT is initialized from associated variableBrad King2023-09-051-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The `CMAKE_MSVC_DEBUG_INFORMATION_FORMAT` variable docs mention that it initializes the `MSVC_DEBUG_INFORMATION_FORMAT` target property, but the property's docs was missing any mention of the variable. Follow the pattern from commit c1b07ca9da (Help: MSVC_RUNTIME_LIBRARY is initialized from associated variable, 2022-08-13, v3.25.0-rc1~317^2). Fixes: #25216
* | | Help: Explain block() policy-scope rules more clearlyFeRD (Frank Dana)2023-09-012-5/+5
| | |
* | | Help: Remove "this command" ambiguity in set() docsFeRD (Frank Dana)2023-09-011-5/+6
| | |
* | | Help: Use signature directive for cmake_policy()FeRD (Frank Dana)2023-09-011-14/+15
| |/ |/|
* | Merge branch 'release-3.27'Brad King2023-08-231-3/+3
|\ \ | |/
| * CMake 3.27.4v3.27.4Brad King2023-08-231-3/+3
| |
* | Help: Update link to Qt 5 CMake docsBrad King2023-08-221-1/+1
| |
* | Merge topic 'imported-cxxmodules'Brad King2023-08-217-1/+77
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 48ee946fdc cmExperimental: recycle the C++ modules API UUID 1a1806a71b gitlab-ci: declare `bmionly` support for modules where possible 457a12f3f9 Tests/RunCMake/CXXModules: add tests which use modules from imported targets 9b9ec70b54 Ninja: generate scanning and build rules for C++20 module synthetic targets 80ef50a191 CXXModules: add a variable for BMI-only compilation 80d6544398 cxxmodules: generate synthetic targets as an initial pass 3dc6676ecc cmSyntheticTargetCache: add a struct for synthetic target caching cb356b540c cmCxxModuleUsageEffects: add a class to capture module usage effects ... Acked-by: Kitware Robot <kwrobot@kitware.com> Tested-by: buildbot <buildbot@kitware.com> Merge-request: !8535
| * | cmExperimental: recycle the C++ modules API UUIDBen Boeckel2023-08-171-1/+1
| | | | | | | | | | | | Supporting modules on IMPORTED targets is worth an update.
| * | CXXModules: add a variable for BMI-only compilationBen Boeckel2023-08-171-0/+6
| | | | | | | | | | | | | | | This will be required when dealing with imported targets which contain modules.
| * | cmExportFileGenerator: export private compile info for C++ modulesBen Boeckel2023-08-176-0/+70
| | | | | | | | | | | | | | | | | | | | | | | | | | | When consuming exported targets which contain C++ modules, the consuming project must be able to recompile BMI files using the original target's flags. This is because a module source may use some private target usage requirement but not want to propagate it to consumers. To facilitate this, export the private information as necessary for consumers to be able to perform the BMI compilations.
* | | Merge topic 'doc-cmake_minimum_required-deprecation'Brad King2023-08-213-0/+19
|\ \ \ | | |/ | |/| | | | | | | | | | | | | | | | 741755f637 Help: Document cmake_minimum_required deprecation of old versions Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: scivision <michael@scivision.dev> Merge-request: !8742
| * | Help: Document cmake_minimum_required deprecation of old versionsBrad King2023-08-193-0/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | | Document the deprecation warnings added by commit 5845c218d7 (Deprecate compatibility with CMake versions older than 2.8.12, 2020-06-12, v3.19.0-rc1~629^2) and commit 3a4791548d (Deprecate compatibility with CMake versions older than 3.5, 2023-02-09, v3.27.0-rc1~508^2). Fixes: #25196
* | | Merge topic 'tutorial-step1'Brad King2023-08-191-1/+13
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | 7d3f4e12d2 Tutorial: Clarify instructions for multi-config generators in Step 1 Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !8734
| * | | Tutorial: Clarify instructions for multi-config generators in Step 1betsy.mcphail2023-08-171-1/+13
| | | |
* | | | Merge topic 'doc_env'Brad King2023-08-191-0/+11
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | a8634b878a Help:ENV: note escaping needed for special characters Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !8733
| * | | | Help:ENV: note escaping needed for special charactersscivision2023-08-171-0/+11
| |/ / /
* | | | Merge topic 'rel-linux-x86_64'Brad King2023-08-171-0/+5
|\ \ \ \ | |/ / / |/| | | | | | | | | | | | | | | | | | | ef2bab7687 Utilities/Release: Update docker specs for linux-x86_64 to centos 7 Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !8731
| * | | Utilities/Release: Update docker specs for linux-x86_64 to centos 7Brad King2023-08-161-0/+5
| | | | | | | | | | | | | | | | | | | | | | | | Update the centos base image from centos 6 to centos 7. The latter is the minimum version supported by libuv 1.45. The resulting binaries require GLIBC 2.17.
* | | | Merge topic 'doc_tc'Brad King2023-08-162-1/+11
|\ \ \ \ | |/ / / |/| | | | | | | | | | | | | | | | | | | | | | | 136edadad4 Help:try_run: place options in their own section a5b292c9a6 Help:try_compile: place options in their own section Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !8724
| * | | Help:try_run: place options in their own sectionscivision2023-08-161-0/+5
| | | |
| * | | Help:try_compile: place options in their own sectionscivision2023-08-161-1/+6
| | | | | | | | | | | | | | | | | | | | As try_compile interface was enhanced in 3.25, the Help got a lot longer. Make the options its own section for navigability.
* | | | Merge branch 'release-3.27'Brad King2023-08-161-0/+7
|\ \ \ \ | | |/ / | |/| / | |_|/ |/| |
| * | CMake 3.27.3v3.27.3Brad King2023-08-161-0/+7
| | |
* | | ExternalProject: Enable Make Job Server with Explicit Build CommandChris Mahoney2023-08-151-0/+10
| |/ |/| | | | | | | | | | | | | | | | | | | | | 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
* | Merge topic 'test-properties-directory'Kyle Edwards2023-08-145-3/+62
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2ccb897d86 get_test_property(): Add DIRECTORY option 84e76fedb0 get_property(TEST): Add DIRECTORY option efc8f19cc5 set_tests_properties(): Add DIRECTORY option 753999d4db set_property(TEST): Add DIRECTORY option Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: buildbot <buildbot@kitware.com> Merge-request: !8709
| * | get_test_property(): Add DIRECTORY optionKyle Edwards2023-08-112-1/+15
| | |
| * | get_property(TEST): Add DIRECTORY optionKyle Edwards2023-08-112-1/+15
| | |
| * | set_tests_properties(): Add DIRECTORY optionKyle Edwards2023-08-112-0/+13
| | |
| * | set_property(TEST): Add DIRECTORY optionKyle Edwards2023-08-102-1/+19
| | |
* | | Merge topic 'ctest-generate-resource-spec-file'Kyle Edwards2023-08-144-0/+33
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | c8c1dd0d95 CTest: Add ability to dynamically generate resource spec file 3f5a5a5856 cmCTestRunTest::StartFailure(): Add total argument Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: buildbot <buildbot@kitware.com> Merge-request: !8699
| * | | CTest: Add ability to dynamically generate resource spec fileKyle Edwards2023-08-104-0/+33
| |/ / | | | | | | | | | Issue: #25106
* | | Merge branch 'backport-vs-sdk-selection' into vs-sdk-selectionBrad King2023-08-102-2/+22
|\ \ \ | |/ / |/| / | |/
| * VS: Select latest Windows SDK even when targeting Windows 8.1 and belowBrad King2023-08-101-0/+5
| | | | | | | | | | | | | | | | | | 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-102-0/+12
| | | | | | | | | | | | | | Honor an explicit `version=8.1` field value regardless of the Windows target version. Issue: #25170