Commit Graph

63070 Commits

Author SHA1 Message Date
betsy.mcphail a94a4c12e1 Tutorial: Fix-up typos and inconsistencies
* 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
2023-09-07 10:57:19 -04:00
Brad King 1c5e4b60b1 Merge topic 'FindPkgConfig-system-cflags'
252c66c697 FindPkgConfig: Tolerate PKG_CONFIG_SYSTEM_INCLUDE_PATH in environment
4507883135 Tests: Rename RunCMake.FindPkgConfig LIBRARY_PATH case to SYSTEM_PATH

Acked-by: Kitware Robot <kwrobot@kitware.com>
Acked-by: buildbot <buildbot@kitware.com>
Merge-request: !8768
2023-09-07 07:52:06 -04:00
Kitware Robot 9fcc923c6c CMake Nightly Date Stamp 2023-09-07 00:01:21 -04:00
Cristian Le 252c66c697 FindPkgConfig: Tolerate PKG_CONFIG_SYSTEM_INCLUDE_PATH in environment
Tell `pkg-config --cflags` not to filter out `-I` flags for entries of
`PKG_CONFIG_SYSTEM_INCLUDE_PATH` (and `CPATH` for `pkgconf`).

Fixes: #25228
2023-09-06 12:17:39 -04:00
Cristian Le 4507883135 Tests: Rename RunCMake.FindPkgConfig LIBRARY_PATH case to SYSTEM_PATH
Prepare to cover CFLAGS too.
2023-09-06 12:12:53 -04:00
Brad King 4771544386 Merge topic 'replace-cmsysprocess-with-cmuvprocesschain'
a5f98df778 Source: Fix mysterious new IWYU warnings
0712e3cfea cmCTestCoverageHandler: Replace cmsysProcess with cmUVProcessChain
96b3dd329e cmCTestLaunchReporter: Replace cmsysProcess with cmUVProcessChain
b15ad7ebb6 cmCTest: Replace cmsysProcess with cmUVProcessChain
50a6e78a82 cmSystemTools::RunSingleCommand(): Replace cmsysProcess with cmUVProcessChain
49a37d5a97 cmCTestScriptHandler: Replace cmsysProcess with cmUVProcessChain
bc702aa97e cmcmd: Replace cmsysProcess with cmUVProcessChain
ec124582ac cmProcessTools::RunProcess(): Replace cmsysProcess with cmUVProcessChain
...

Acked-by: Kitware Robot <kwrobot@kitware.com>
Tested-by: buildbot <buildbot@kitware.com>
Merge-request: !8665
2023-09-06 11:22:28 -04:00
Brad King 00a7acb7da Merge topic 'nsis-correct-jump'
d3bfe0ea44 CPack/NSIS: Fix incorrect jump for standard user

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !8767
2023-09-06 11:19:03 -04:00
Brad King ce4df15c41 Merge topic 'xcode-no-legacy-buildsystem'
b78a14e204 Xcode: reject legacy buildsystem for Xcode 14

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !8762
2023-09-06 11:12:57 -04:00
Brad King d0cfba9d6e Merge topic 'reduce-sign-conversion-warnings'
7b3464320f Reduce sign conversion warnings

Acked-by: Kitware Robot <kwrobot@kitware.com>
Acked-by: buildbot <buildbot@kitware.com>
Merge-request: !8769
2023-09-06 11:09:11 -04:00
Brad King 704d21d8a6 Merge topic 'FindMatlab'
7d7fe9981c FindMatlab: use if(IS_DIRECTORY) for directories instead of EXISTS
cf554750dd FindMatlab: no if(NOT EXIST) guard needed for file(MAKE_DIRECTORY)

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !8759
2023-09-06 11:07:38 -04:00
Brad King 77a2ae753f Merge topic 'FindGLEW-mingw'
a37a04b5c6 FindGLEW: Use correct library suffixes on MinGW

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !8766
2023-09-06 11:06:25 -04:00
Brad King b834e8d533 Merge topic 'ci-vs2022-qt'
fc41962481 ci: Enable Qt tests in nightly VS IDE job
67abc25e67 ci: Factor out location of cmake in Qt download script

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !8771
2023-09-06 11:04:39 -04:00
Brad King 7de96abcb2 Merge branch 'release-3.27' 2023-09-06 10:55:44 -04:00
Brad King 6cda2b1270 Merge topic 'fortran-object-libraries'
045d8eca6c Merge branch 'fortran-object-libraries-release' into fortran-object-libraries
74b1d6caf3 cmComputeLinkInformation: compute link info for module-using targets
6251edaed1 cmGeneratorTarget: support config-independent Fortran source queries

Acked-by: Kitware Robot <kwrobot@kitware.com>
Tested-by: buildbot <buildbot@kitware.com>
Merge-request: !8772
2023-09-06 10:55:44 -04:00
Brad King d63f0be8fc Merge topic 'fortran-object-libraries' into release-3.27
74b1d6caf3 cmComputeLinkInformation: compute link info for module-using targets
6251edaed1 cmGeneratorTarget: support config-independent Fortran source queries

Acked-by: Kitware Robot <kwrobot@kitware.com>
Tested-by: buildbot <buildbot@kitware.com>
Merge-request: !8772
2023-09-06 10:55:43 -04:00
Brad King c1dc341776 Merge branch 'release-3.27' 2023-09-06 10:51:40 -04:00
Brad King dfdce979e9 Merge topic 'doc-msvc-debug-format'
91dc94c4ac Help: MSVC_DEBUG_INFORMATION_FORMAT is initialized from associated variable

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !8770
2023-09-06 10:51:40 -04:00
Brad King 275656daea Merge topic 'doc-msvc-debug-format' into release-3.27
91dc94c4ac Help: MSVC_DEBUG_INFORMATION_FORMAT is initialized from associated variable

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !8770
2023-09-06 10:51:39 -04:00
Kitware Robot daf7639ec3 CMake Nightly Date Stamp 2023-09-06 00:01:14 -04:00
Ben Boeckel 045d8eca6c Merge branch 'fortran-object-libraries-release' into fortran-object-libraries
* fortran-object-libraries-release:
  cmComputeLinkInformation: compute link info for module-using targets
  cmGeneratorTarget: support config-independent Fortran source queries
2023-09-05 19:27:41 -04:00
Ben Boeckel 74b1d6caf3 cmComputeLinkInformation: compute link info for module-using targets
Targets which contain C++ module or Fortran sources need to participate
in link information unconditionally regardless of whether they actually
have link artifacts or not.

Fixes: #25223
2023-09-05 18:12:25 -04:00
Ben Boeckel 6251edaed1 cmGeneratorTarget: support config-independent Fortran source queries
Some locations care about "any config with Fortran", so make a query for
such (they may not know any configuration names themselves).
2023-09-05 18:12:25 -04:00
Brad King fc41962481 ci: Enable Qt tests in nightly VS IDE job 2023-09-05 15:23:47 -04:00
Brad King 67abc25e67 ci: Factor out location of cmake in Qt download script 2023-09-05 15:22:37 -04:00
Brad King 91dc94c4ac Help: MSVC_DEBUG_INFORMATION_FORMAT is initialized from associated variable
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
2023-09-05 15:01:04 -04:00
Sprite d3bfe0ea44 CPack/NSIS: Fix incorrect jump for standard user
Revert an incorrect change from commit c4a0bcea77 (CPack: Fix NSIS
handling of privileged users, 2012-02-01, v2.8.8~230^2).

Fixes: #13939
2023-09-05 13:39:00 -04:00
Brad King 98e1bea3fa Merge topic 'find-module-frameworks'
6b01a27f90 macOS: Simplify imported framework locations in find modules

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !8757
2023-09-05 11:11:12 -04:00
Kitware Robot 6ebf71af10 CMake Nightly Date Stamp 2023-09-05 00:01:15 -04:00
Kyle Edwards 4e02834eee Merge topic 'fileapi-test-fix'
e1fe5bb475 Tests: Fix FileAPI interface_exe test

Acked-by: Kitware Robot <kwrobot@kitware.com>
Tested-by: buildbot <buildbot@kitware.com>
Merge-request: !8765
2023-09-04 09:46:34 -04:00
Kitware Robot 89038367ab CMake Nightly Date Stamp 2023-09-04 00:01:44 -04:00
مهدي شينون (Mehdi Chinoune) a37a04b5c6 FindGLEW: Use correct library suffixes on MinGW 2023-09-03 19:53:00 +01:00
Kitware Robot 363570638a CMake Nightly Date Stamp 2023-09-03 00:01:14 -04:00
Kitware Robot 31f58c5d80 CMake Nightly Date Stamp 2023-09-02 00:01:14 -04:00
Kyle Edwards e1fe5bb475 Tests: Fix FileAPI interface_exe test 2023-09-01 14:02:44 -04:00
Craig Scott bf933b8173 Merge topic 'scope-doc-tweaks'
bbf3ed5422 Help: Explain block() policy-scope rules more clearly
2f319c6484 Help: Remove "this command" ambiguity in set() docs
9eecdc7ab7 Help: Use signature directive for cmake_policy()

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !8761
2023-09-01 09:00:16 -04:00
FeRD (Frank Dana) bbf3ed5422 Help: Explain block() policy-scope rules more clearly 2023-09-01 21:28:56 +10:00
FeRD (Frank Dana) 2f319c6484 Help: Remove "this command" ambiguity in set() docs 2023-09-01 21:28:56 +10:00
FeRD (Frank Dana) 9eecdc7ab7 Help: Use signature directive for cmake_policy() 2023-09-01 21:28:40 +10:00
Kitware Robot eb5174a90c CMake Nightly Date Stamp 2023-09-01 00:01:12 -04:00
Gregor Jasny b78a14e204 Xcode: reject legacy buildsystem for Xcode 14
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.
2023-08-31 10:13:57 +02:00
Kitware Robot 4b28f39591 CMake Nightly Date Stamp 2023-08-31 00:01:19 -04:00
Kitware Robot 4cd207b6f3 CMake Nightly Date Stamp 2023-08-30 00:01:12 -04:00
Matthew Woehlke 7b3464320f Reduce sign conversion warnings
Add some static casts to make explicit some sign conversions in order to
avoid warnings about the same. This is by no means an attempt to fix all
such warnings, but these instances were especially egregious as they
would be raised across many source files.

Also change a post-increment of an iterator to pre-increment. At worst,
this does nothing, but pre-increment is potentially more efficient.
2023-08-29 15:57:24 -04:00
Kyle Edwards a5f98df778 Source: Fix mysterious new IWYU warnings 2023-08-29 10:51:30 -04:00
Kyle Edwards 0712e3cfea cmCTestCoverageHandler: Replace cmsysProcess with cmUVProcessChain 2023-08-29 10:51:30 -04:00
Kyle Edwards 96b3dd329e cmCTestLaunchReporter: Replace cmsysProcess with cmUVProcessChain
And convert cmCTestLaunch and cmCTestBuildHandler too.
2023-08-29 10:51:30 -04:00
Kyle Edwards b15ad7ebb6 cmCTest: Replace cmsysProcess with cmUVProcessChain 2023-08-29 10:51:30 -04:00
Kyle Edwards 50a6e78a82 cmSystemTools::RunSingleCommand(): Replace cmsysProcess with cmUVProcessChain
And pass OUTPUT_PASSTHROUGH in one call where it was missing.
2023-08-29 10:51:30 -04:00
Kyle Edwards 49a37d5a97 cmCTestScriptHandler: Replace cmsysProcess with cmUVProcessChain
And update cmSystemTools::WaitForLine() to use cmUVProcessChain.
2023-08-29 10:51:30 -04:00
Kyle Edwards bc702aa97e cmcmd: Replace cmsysProcess with cmUVProcessChain 2023-08-29 10:51:30 -04:00