Commit Graph

54873 Commits

Author SHA1 Message Date
Brad King 5329366527 ci: update cuda9.2 base image after DST Root CA X3 expiry 2021-10-01 10:21:39 -04:00
Kitware Robot b3a0bddc4e CMake Nightly Date Stamp 2021-10-01 00:01:25 -04:00
makise-homura 77c237d219 zstd: Fix incorrect pragma error on LCC compiler
LCC (Elbrus C Compiler) doesn't understand some of
GCC pragmas, despite of declaring itself GCC-aware.
The pragma of subject is the one that forbids vectorizing.
Actually, LCC don't vectorize anything unless explicitly
said to, so this pragma may be safely omitted and thus
not cause an error. This patch does this.
2021-09-30 23:19:44 +03:00
Seth R Johnson 8f7e98ef09 cmInstallTargetGenerator: optimize rpath adjustments
With builds that have many internal library directories or many
external libraries, rpaths can be quite large. The cost of calling
install_name_tool thousands of times can add up to minutes on a build,
especially if virus scanning software is there to help you out. With
this change, instead of deleting and then re-adding an rpath, we ignore
it.  Likewise we batch all the rpath adjustment calls into a single command.

Before, installing SCALE (some libraries have 70+ build-time RPATHs that
get deleted, plus up to a dozen external RPATHs from upstream
dependencies that should remain in the binary) would take almost 9
minutes on my laptop, and after this change the installation takes only
30 second.
2021-09-30 15:36:35 -04:00
Joseph Snyder 6dade88d1c Tutorial: Add documentation on Package helper functions
Add documentation for the configure_package_config_file() and
write_basic_package_version_file() commands.

Update the comment for the installation of those files to allow a
stopping point for the code display.

Issue: #22663
2021-09-30 14:43:28 -04:00
Joseph Snyder 1bf25b5b5f Tutorial: Remove information about EXPORT keyword
Remove the text that implies that the EXPORT keyword will also install
the generated CMake file.
2021-09-30 13:06:20 -04:00
Betsy McPhail 01c332c9c7 Tutorial: Clarify instructions in Step 5 2021-09-30 12:18:41 -04:00
Betsy McPhail 14600a42c8 Tutorial: Update Step 1 instructions
To demonstrate how simple a CMake project can be, move the `Build and Run`
section earlier in the step.
2021-09-30 12:04:52 -04:00
samuel100u a1f0ddcbb7 CUDA: Fix detection of implicit link information with CUDA 6.5
Fixes: #22701
2021-09-30 09:33:17 -04:00
Christophe Bernard 0f17b37b96 Tutorial: Fix regexps in sample CMakeLists.txt files
Replace original regexp `[-nan|nan|0]` with `(-nan|nan|0)`
which is what the author most likely intended to write in the
first place.
2021-09-30 08:55:41 -04:00
Brad King 89d134c61d Merge topic 'FindMatlab-version-selection'
7fdd5128b1 FindMatlab: Fix version selection if a version is given

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !6300
2021-09-30 08:52:23 -04:00
Brad King 6051e4b7c3 Merge topic 'cmake_find_library_suffixes_ext_windows_fixes'
9aba0ce29d Help: Fix CMAKE_FIND_LIBRARY_SUFFIXES examples for Windows

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !6569
2021-09-30 08:51:27 -04:00
Brad King ddc8ebcee3 Merge topic 'libuv-openbsd'
096450f808 libuv: Include BSD sys/cpuset.h only on platforms where we use it

Acked-by: Kitware Robot <kwrobot@kitware.com>
Acked-by: buildbot <buildbot@kitware.com>
Merge-request: !6570
2021-09-30 08:50:33 -04:00
Kitware Robot 32818510c8 CMake Nightly Date Stamp 2021-09-30 00:01:14 -04:00
Raul Tambre 4a0485be7f cmStandardLevelResolver: Avoid unnecessary flags, fix unset level logic
The changes are part of CMP0128.

When the standard level is unset:
* Flags are added if extension mode doesn't match the compiler's default.
  Previously logic only worked if LANG_EXTENSIONS was ON. Fixes #22224.
* The full flag is used. Previously CMAKE_LANG_EXTENSION_COMPILE_OPTION was
  used. This was only supported for IAR.

Otherwise:
* Avoid adding flags if not necessary per the detected compiler defaults.
* Fixed check for when the requested standard is older. It now matches the
  nearby comments.

I reworded the fallback comment as its logic was a bit difficult to wrap my
head around.
2021-09-29 22:28:40 +03:00
Brad King d332f4f825 Merge topic 'update-third-party'
ae53a3071b update-third-party: update from upstream

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !6571
2021-09-29 15:15:19 -04:00
Brad King ae53a3071b update-third-party: update from upstream
Update to `update-common.sh` from commit `7134d5ebef` in

    https://gitlab.kitware.com/utils/git-import-third-party
2021-09-29 15:08:24 -04:00
Alexander Neumann 7fdd5128b1 FindMatlab: Fix version selection if a version is given
Fixes: #22377
2021-09-29 14:33:36 -04:00
Ralf Habacker 9aba0ce29d Help: Fix CMAKE_FIND_LIBRARY_SUFFIXES examples for Windows
Fixes: #22697
2021-09-29 13:38:41 -04:00
Brad King 096450f808 libuv: Include BSD sys/cpuset.h only on platforms where we use it
Since commit 43d6e5a71f (libuv: misc: add function to get CPU affinity
mask size, 2017-09-06, v3.12.0-rc1~412^2~3) we include `<sys/cpuset.h>`
on several BSD platforms but only use it on FreeBSD.
2021-09-29 12:31:49 -04:00
Brad King 5bd94332c7 Merge topic 'clang-warnings'
37859e3244 Source: Fix clang -Wimplicit-fallthrough warnings
907d098838 Source: Fix clang -Wextra-semi warnings

Acked-by: Kitware Robot <kwrobot@kitware.com>
Acked-by: buildbot <buildbot@kitware.com>
Merge-request: !6561
2021-09-29 09:57:47 -04:00
Brad King 84673a8243 Merge topic 'xcode-dead-code'
b8a2ce0484 cmGlobalXCodeGenerator: Remove dead buildsystem version check

Acked-by: Kitware Robot <kwrobot@kitware.com>
Reviewed-by: Raul Tambre <raul@tambre.ee>
Merge-request: !6568
2021-09-29 09:57:00 -04:00
Brad King a074204986 Merge topic 'xcode-generation-support-inl-files'
16ea0e57f7 Xcode: Treat .inl files as C++ header files

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !6563
2021-09-29 09:56:02 -04:00
Brad King 487b011574 Merge topic 'GetPrerequisites-objdump-exe'
403f343082 GetPrerequisites: Support CMAKE_OBJDUMP with .exe extension

Acked-by: Kitware Robot <kwrobot@kitware.com>
Acked-by: buildbot <buildbot@kitware.com>
Merge-request: !6566
2021-09-29 09:52:16 -04:00
Brad King 9b1fc61722 Merge topic 'nasm-defines-fix'
9b94f95bed ASM_NASM: Pass preprocessor definitions to assembler

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !6567
2021-09-29 09:51:20 -04:00
Kitware Robot 700f76299c CMake Nightly Date Stamp 2021-09-29 00:01:13 -04:00
Raul Tambre 29e2b85171 Tests: Simplify RunCMake.CompileFeatures introspection 2021-09-28 21:24:53 +03:00
Raul Tambre fc3a1cbdd8 CompilerID: Compiler extensions default detection 2021-09-28 21:24:53 +03:00
Raul Tambre 2adfd95d79 CompilerID: Rename language_dialect to language_standard
In Linux C++ terms dialect usually refers to having GNU extensions or not.
Change the name to better reflect that this is about the standard version.
2021-09-28 21:24:53 +03:00
Raul Tambre 00055d7779 Help: Document CMAKE_<LANG>_STANDARD_DEFAULT
Seems to be stable and will referred to by policy for standards flags rework.
2021-09-28 21:24:53 +03:00
Raul Tambre a65bee4cfc Help: Document HIP standard/extensions properties and variables 2021-09-28 21:24:53 +03:00
Raul Tambre a40ff1bb5a Help: Make language standard/extensions variable pages less wordy
They all had two sentences describing the same thing. Furthermore, with the
shorter wording the explicit advice to see the property being initialized for
further information seems unnecessary.
2021-09-28 21:24:53 +03:00
Raul Tambre 3feff8379b Help: Generic language standard and extension variables documentation
Add generic documentation to improve the discoverability of language-specific
ones and to make it possible to refer to them generically from other language
generic documentation.
2021-09-28 21:24:53 +03:00
Sean McBride 37859e3244 Source: Fix clang -Wimplicit-fallthrough warnings 2021-09-28 10:53:54 -04:00
Jake Turner 16ea0e57f7 Xcode: Treat .inl files as C++ header files
Generate the `explicitFileType` as `sourcecode.cpp.h` instead of just
`sourcecode`.  This enables syntax highlighting in Xcode.
2021-09-28 10:49:04 -04:00
Brad King b8a2ce0484 cmGlobalXCodeGenerator: Remove dead buildsystem version check
In commit 8d5f4c4db9 (Xcode: Switch to the "new build system" for Xcode
12 and above, 2020-09-14, v3.19.0-rc1~143^2~7) we accidentally added
code in an `else` block that under the opposite condition by which
the block can be entered.  Remove it.

Fixes: #22681
2021-09-28 10:42:48 -04:00
Wirtos_new 9b94f95bed ASM_NASM: Pass preprocessor definitions to assembler
Add the `<DEFINES>` placeholder to `CMAKE_ASM_NASM_COMPILE_OBJECT`.

Fixes: #22694
2021-09-28 10:14:50 -04:00
Daniel Schlegel 403f343082 GetPrerequisites: Support CMAKE_OBJDUMP with .exe extension
When running `fixup_bundle` in a MSYS environment it fails because
`gp_tool` resolves to `objdump.exe` and not just `objdump`.

Fixes: #22381
2021-09-28 10:11:00 -04:00
Sean McBride 907d098838 Source: Fix clang -Wextra-semi warnings 2021-09-28 09:59:24 -04:00
Brad King 09dd52c9d2 Merge topic 'tutorial_update_step_8'
f55a02a26e Tutorial: Enhance CTestConfig info in Step 8

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !6565
2021-09-28 09:56:14 -04:00
Kitware Robot 966d9b3967 CMake Nightly Date Stamp 2021-09-28 00:01:17 -04:00
Brad King 71c50f0019 Merge branch 'release-3.21' 2021-09-27 13:48:57 -04:00
Brad King a21d5455c0 Merge topic 'autogen-dep-on-imported-implib-only-target'
895fa3433f cmQtAutoGenInitializer: support IMPLIB-only imported targets
354c1f5628 Tests/RunCMake/Autogen: test CMP0111 behavior

Acked-by: Kitware Robot <kwrobot@kitware.com>
Tested-by: buildbot <buildbot@kitware.com>
Merge-request: !6558
2021-09-27 13:48:57 -04:00
Brad King 12b999e66a Merge topic 'autogen-dep-on-imported-implib-only-target' into release-3.21
895fa3433f cmQtAutoGenInitializer: support IMPLIB-only imported targets
354c1f5628 Tests/RunCMake/Autogen: test CMP0111 behavior

Acked-by: Kitware Robot <kwrobot@kitware.com>
Tested-by: buildbot <buildbot@kitware.com>
Merge-request: !6558
2021-09-27 13:48:56 -04:00
Brad King 16b54616ca Merge topic 'update-curl'
5b117bddd0 Merge branch 'upstream-curl' into update-curl
c4f76b28dc curl 2021-09-22 (c7aef0a9)
71ea2d607d curl: Update script to get curl 7.79.1

Acked-by: Kitware Robot <kwrobot@kitware.com>
Acked-by: buildbot <buildbot@kitware.com>
Merge-request: !6560
2021-09-27 13:48:03 -04:00
Brad King 6c4ebcbf40 Merge topic 'tutorial_update_stage_2'
68e0f72744 Tutorial: Describe placement of add_subdirectory

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !6559
2021-09-27 13:46:58 -04:00
Brad King 8dc72232d9 Merge topic 'iar-lang-spec-detection'
a9073db736 IAR: update language specification detection

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !6458
2021-09-27 13:46:03 -04:00
Joseph Snyder f55a02a26e Tutorial: Enhance CTestConfig info in Step 8
Add a copy of the CTestConfig.cmake from Step 9 into the directory for
Step 8.

Expand the information about the contents of the CTestConfig file and
write a brief explanation of where on CDash to acquire the CTestConfig
file for a specific project.

CMake Issue: #22663
2021-09-27 10:11:17 -04:00
Kitware Robot b0c2aeaab4 CMake Nightly Date Stamp 2021-09-27 00:01:25 -04:00
Kitware Robot 1edc9e8887 CMake Nightly Date Stamp 2021-09-26 00:01:28 -04:00