Commit Graph

57253 Commits

Author SHA1 Message Date
Brad King 41ef904e81 FindThreads: Simplify conditions for not-in-libc checks
If `CMAKE_HAVE_LIBC_PTHREAD` is true, we also set `Threads_FOUND` to
true, which blocks all the other checks from running.
2022-04-26 13:54:53 -04:00
Brad King cbe7550d99 FindThreads: Remove unnecessary condition
The `THREADS_HAVE_PTHREAD_ARG` cache entry cannot be defined unless
FindThreads has already been executed, perhaps by a previous run of
CMake, or a previous `find_package(Threads)` call.  In that case, the
other alternatives will also already have been checked and results
cached.
2022-04-26 13:54:53 -04:00
Brad King 1ee8c545dd FindThreads: Clarify internal helper macro names 2022-04-26 13:54:53 -04:00
Brad King 5b5cd92363 FindThreads: Drop strange SunOS+pthread.h+thr_create combination
Solaris has provided pthreads for a long time, so we probably never
get to this combination anyway.
2022-04-26 13:54:53 -04:00
Brad King c9bd462c08 FindThreads: Drop unused internal CMAKE_HAVE_THREADS_LIBRARY variable
This internal variable has not been used since commit 46368eddfd
(FindThreads: move checking of the -pthread compiler flag into a macro,
2014-10-06, v3.1.0-rc1~21^2~2).  It has never been documented for public
use.
2022-04-26 13:54:53 -04:00
Brad King 07a54b2bb2 Merge topic 'target-bundle-dir-name-genex'
997af2e1a6 Genex: Add TARGET_BUNDLE_DIR_NAME
627b2eba6c Help: Make TARGET_BUNDLE[_CONTENT]_DIR examples more precise

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !7177
2022-04-26 11:15:47 -04:00
Brad King f5c96c4106 Merge branch 'release-3.23' 2022-04-26 11:13:40 -04:00
Brad King 6cca475bbf Merge branch 'release-3.22' 2022-04-26 11:13:38 -04:00
Brad King f06b8ff040 Merge branch 'release-3.21' 2022-04-26 11:13:36 -04:00
Brad King 7ba4d289c9 Merge branch 'release-3.22' into release-3.23 2022-04-26 11:13:27 -04:00
Brad King ad5bf708a6 Merge branch 'release-3.21' into release-3.22 2022-04-26 11:13:18 -04:00
Brad King 6872e4b5d9 Merge branch 'release-3.23' 2022-04-26 11:12:52 -04:00
Brad King e7de5894c7 Merge topic 'ci-xcode-13.3'
65b6daf776 gitlab-ci: update macOS jobs to use Xcode 13.3
94361a1309 Tests: Ignore all classes in Xcode internal objc warnings
da9f864513 Tests: Teach RunCMake to ignore Xcode extension point warnings

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !7204
2022-04-26 11:12:52 -04:00
Brad King 7e4d6bbe02 Merge topic 'ci-xcode-13.3' into release-3.23
65b6daf776 gitlab-ci: update macOS jobs to use Xcode 13.3
94361a1309 Tests: Ignore all classes in Xcode internal objc warnings
da9f864513 Tests: Teach RunCMake to ignore Xcode extension point warnings

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !7204
2022-04-26 11:12:51 -04:00
Brad King f48047251f Merge branch 'ci-xcode-13.3' into release-3.22
Merge-request: !7204
2022-04-26 11:12:28 -04:00
Brad King adcb98c51b Merge branch 'ci-xcode-13.3' into release-3.21
Merge-request: !7204
2022-04-26 11:12:02 -04:00
Brad King 28dc5ea910 Merge topic 'ci-python'
2c140ac7b1 ci: Avoid finding Python via Windows Registry

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !7203
2022-04-26 10:27:20 -04:00
Brad King 2c140ac7b1 ci: Avoid finding Python via Windows Registry
Since commit 313ea361b0 (CMake: Use FindPython instead of
FindPythonInterp to build CMake itself, 2022-04-21), CI jobs on some
Windows hosts have been finding Python via the Windows Registry.
Explicitly disable the registry search so that the CI jobs find the
Python that we download and put in the PATH inside the job.
2022-04-26 09:29:37 -04:00
Kitware Robot a0061a8cf9 CMake Nightly Date Stamp 2022-04-26 00:01:15 -04:00
Brad King 65b6daf776 gitlab-ci: update macOS jobs to use Xcode 13.3 2022-04-25 15:52:15 -04:00
Gregor Jasny 94361a1309 Tests: Ignore all classes in Xcode internal objc warnings
Xcode on Apple Silicon warns not only about AMSupportURL classes
but also many more.
2022-04-25 15:52:15 -04:00
Brad King da9f864513 Tests: Teach RunCMake to ignore Xcode extension point warnings
On some Xcode versions, `xcodebuild` may warn:

    ... xcodebuild[...] Requested but did not find extension point with
                        identifier ...

Teach RunCMake to drop such incidental lines before matching against
expected output.
2022-04-25 14:35:11 -04:00
Brad King 7dc7907837 Merge topic 'ci-icu'
7d98d464b4 ci: Enable FindICU test on Linux builds
2228e545e1 ci: Add libicu to Debian and Fedora base images

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !7199
2022-04-25 13:13:11 -04:00
Kitware Robot c6ead9be83 CMake Nightly Date Stamp 2022-04-25 00:01:23 -04:00
Kitware Robot f109faf450 CMake Nightly Date Stamp 2022-04-24 00:01:09 -04:00
Kitware Robot 5b21ca7302 CMake Nightly Date Stamp 2022-04-23 00:01:21 -04:00
Brad King 7d98d464b4 ci: Enable FindICU test on Linux builds 2022-04-22 10:25:59 -04:00
Brad King 2228e545e1 ci: Add libicu to Debian and Fedora base images 2022-04-22 10:24:29 -04:00
Brad King bcd98b5f98 Merge topic 'cmake-use-findpython'
313ea361b0 CMake: Use FindPython instead of FindPythonInterp to build CMake itself
b6a6190877 string(): Support hash functions in bootstrap

Acked-by: Kitware Robot <kwrobot@kitware.com>
Tested-by: buildbot <buildbot@kitware.com>
Merge-request: !7197
2022-04-22 09:38:43 -04:00
Ben Leadbetter 997af2e1a6 Genex: Add TARGET_BUNDLE_DIR_NAME
Evaluate to the name of the bundle directory for a given bundle target.

Fixes: #23409
2022-04-22 09:23:46 -04:00
Brad King 627b2eba6c Help: Make TARGET_BUNDLE[_CONTENT]_DIR examples more precise
The `TARGET_BUNDLE_DIR` and `TARGET_BUNDLE_CONTENT_DIR` generator
expressions produce absolute paths.  Show them in the examples.

Suggested-by: Ben Leadbetter <ben.leadbetter@native-instruments.com>
2022-04-22 09:22:11 -04:00
Brad King 4f15a57060 Merge topic 'verify-header-sets-doc-clarification'
5fe0e3627c VERIFY_HEADER_SETS: Clarify that header sets must be PUBLIC or INTERFACE

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !7195
2022-04-22 09:12:26 -04:00
Brad King b48e348b66 Merge topic 'FindICU-show-found-libs'
c3c7e6d609 FindICU: Show location of found libraries

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !7193
2022-04-22 09:11:42 -04:00
Brad King f415b457e3 Merge topic 'cmake-install-script-gen-style'
4085128586 generated-scripts: use CMAKE_CURRENT_LIST_DIR where possible
a1a7f62918 generated-scripts: improve prose messages with CMake lists
c2194176db generated-scripts: unset used variables
233997a914 generated-scripts: use `foreach(IN LISTS)`
2ec44be41e generated-scripts: quote variable expansions
d74761b181 generated-scripts: simplify `if` conditions
59cc92085e generated-cmake: use `_cmake_` prefixes for local variables
a2cb1754a5 cmExportFileGenerator: require CMake 2.8.3

Acked-by: Kitware Robot <kwrobot@kitware.com>
Tested-by: buildbot <buildbot@kitware.com>
Merge-request: !7194
2022-04-22 09:02:34 -04:00
Brad King bd8acc3a1b Merge topic 'clang-cl-asm-msvc-runtime'
b41fab9285 Clang: populate MSVC runtime library abstraction table

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !7048
2022-04-22 09:01:35 -04:00
Brad King 8e666c2027 Merge topic 'ghs-rerun-cmake-fix'
1de3382de5 GHS: Fix RERUN_CMAKE issue when generation step fails

Acked-by: Kitware Robot <kwrobot@kitware.com>
Acked-by: buildbot <buildbot@kitware.com>
Merge-request: !7183
2022-04-22 09:00:07 -04:00
Brad King 1bd85e8f3f Merge topic 'NO_CMAKE_INSTALL_PREFIX'
42f7e39789 Find: Support per call disabling of CMAKE_INSTALL_PREFIX

Acked-by: Kitware Robot <kwrobot@kitware.com>
Acked-by: buildbot <buildbot@kitware.com>
Merge-request: !7163
2022-04-22 08:59:09 -04:00
Brad King 5e9c3e2f07 Merge branch 'release-3.23' 2022-04-22 08:55:57 -04:00
Brad King 417de67afd Merge topic 'CheckCompilerFlags-revert-linker-warnings'
4941887d7d CheckCompilerFlags: Revert "Catch linker warning about ignored flags"
c2341ece47 CheckLinkerFlag: Catch linker warning when the checked flag is ignored

Acked-by: Kitware Robot <kwrobot@kitware.com>
Tested-by: buildbot <buildbot@kitware.com>
Merge-request: !7190
2022-04-22 08:55:57 -04:00
Brad King ddefed68e5 Merge topic 'CheckCompilerFlags-revert-linker-warnings' into release-3.23
4941887d7d CheckCompilerFlags: Revert "Catch linker warning about ignored flags"
c2341ece47 CheckLinkerFlag: Catch linker warning when the checked flag is ignored

Acked-by: Kitware Robot <kwrobot@kitware.com>
Tested-by: buildbot <buildbot@kitware.com>
Merge-request: !7190
2022-04-22 08:55:56 -04:00
Brad King c0fab6dac8 Merge branch 'release-3.23' 2022-04-22 08:54:24 -04:00
Brad King 85e5818d2e Merge topic 'wrong-header-referenced-in-guide'
27589da705 Help/guide: Fix wrong header file reference

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !7196
2022-04-22 08:54:24 -04:00
Brad King 32eba762be Merge topic 'wrong-header-referenced-in-guide' into release-3.23
27589da705 Help/guide: Fix wrong header file reference

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !7196
2022-04-22 08:54:23 -04:00
Kitware Robot bcf0b79d66 CMake Nightly Date Stamp 2022-04-22 00:01:18 -04:00
Martin Duffy 27589da705 Help/guide: Fix wrong header file reference
Step 2 references mysqrt.h instead of MathFunctions.h.
MathFunctions/mysqrt.h doesn't exist until Step 9.
2022-04-21 14:25:06 -04:00
Kyle Edwards 313ea361b0 CMake: Use FindPython instead of FindPythonInterp to build CMake itself
Fixes: #23444
2022-04-21 14:23:36 -04:00
Kyle Edwards b6a6190877 string(): Support hash functions in bootstrap
cmCryptoHash has been included in the bootstrap script since 596439b.
Add hash support to string() in bootstrap to allow FindPython to work.
2022-04-21 14:23:30 -04:00
Kyle Edwards 5fe0e3627c VERIFY_HEADER_SETS: Clarify that header sets must be PUBLIC or INTERFACE 2022-04-21 13:41:41 -04:00
Don Olmstead c3c7e6d609 FindICU: Show location of found libraries
Announce locations of the libraries without the use of `ICU_DEBUG`.
2022-04-21 12:54:02 -04:00
Brad King 7fc013a922 Merge topic 'rel-macos-dmg-no-sla'
2167fce99b Utilities/Release: Drop SLA from CMake macOS DMG package

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !7192
2022-04-21 12:08:31 -04:00