summaryrefslogtreecommitdiffstats
path: root/Source/cmGlobalGenerator.cxx
Commit message (Collapse)AuthorAgeFilesLines
* cxxmodules: remove `CMAKE_EXPERIMENTAL_CXX_MODULE_DYNDEP` variableBen Boeckel2023-06-011-15/+0
| | | | It is now subsumed by the UUID setting completely.
* Merge topic 'cmake-compile-no-warning-as-error'Brad King2023-06-011-0/+6
|\ | | | | | | | | | | | | | | | | da27ff1e96 Preserve --compile-no-warning-as-error in automatic CMake re-runs e0b48284a1 Xcode: Internally uses -S instead of -H to specify source directory Acked-by: Kitware Robot <kwrobot@kitware.com> Tested-by: buildbot <buildbot@kitware.com> Merge-request: !8522
| * Preserve --compile-no-warning-as-error in automatic CMake re-runsBrad King2023-05-301-0/+6
| | | | | | | | | | | | | | | | When the build system re-runs `cmake` to regenerate itself, preserve the `--compile-no-warning-as-error` option if it was used when `cmake` was last explicitly invoked. Normally such settings are preserved in the cache, but the purpose of this option is to be beyond the reach of project code.
* | Merge topic 'AddCacheEntry-suppress-raw-pointer-usage'Brad King2023-05-311-5/+3
|\ \ | | | | | | | | | | | | | | | | | | | | | 4fc322bab4 AddCacheEntry: Suppress raw pointer usage Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: buildbot <buildbot@kitware.com> Merge-request: !8520
| * | AddCacheEntry: Suppress raw pointer usageMarc Chevrier2023-05-301-5/+3
| |/
* | Merge topic 'cmake-verbose-print-build-tool-command'Brad King2023-05-311-25/+51
|\ \ | |/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | 8451a3f0b5 cmGlobalGenerator: use a stream for output in `Build` e060666531 cmake: write the build command itself with `--verbose` b017c9f127 cmGlobalGenerator: fix off-by-one for `&&` command joining c715fd8d76 cmGlobalGenerator: quote commands in `::Build` output d6c0e827bc cmGlobalGenerator: add a `QuotedPrintable` method for commands 28ee3bef34 cmGlobalGenerator: add missing spaces in output 465ab8d872 cmGlobalGenerator: use `cmStrCat` in `::Build` 81d45dabc4 cmOutputConverter: add a `static` version of `EscapeForShell` Acked-by: Kitware Robot <kwrobot@kitware.com> Tested-by: buildbot <buildbot@kitware.com> Acked-by: Alex <leha-bot@yandex.ru> Merge-request: !8183
| * cmGlobalGenerator: use a stream for output in `Build`Ben Boeckel2023-05-271-21/+29
| | | | | | | | | | This allows output to show up in output immediately instead of being batched.
| * cmGlobalGenerator: fix off-by-one for `&&` command joiningBen Boeckel2023-05-161-1/+1
| | | | | | | | Only add `&&` if there is another command after the current one.
| * cmGlobalGenerator: quote commands in `::Build` outputBen Boeckel2023-05-161-4/+7
| | | | | | | | | | Now that these are going to be visible when running with `--verbose`, properly quote things so that they can be used as-is.
| * cmGlobalGenerator: add a `QuotedPrintable` method for commandsBen Boeckel2023-05-161-0/+18
| |
| * cmGlobalGenerator: add missing spaces in outputBen Boeckel2023-05-161-3/+3
| | | | | | | | | | The preludes to commands should have a space to separate them from the first argument of the command sequence.
| * cmGlobalGenerator: use `cmStrCat` in `::Build`Ben Boeckel2023-05-161-13/+10
| | | | | | | | Also replace some single-char strings with character literals.
* | SetProperty: suppress raw pointer usageMarc Chevrier2023-05-261-1/+1
| |
* | Apple Framework: enhance path parsingMarc Chevrier2023-05-211-5/+6
|/
* CMake code rely on cmList class for CMake lists management (part. 2)Marc Chevrier2023-04-291-21/+17
|
* CMake code rely on cmList class for CMake lists management (part. 1)Marc Chevrier2023-04-241-7/+7
|
* Autogen: Defer setup until Generate stepOrkun Tokdemir2023-04-051-8/+14
| | | | It is better to set variables up once all target dependencies are known.
* Merge topic 'automoc-cxx-standard'Brad King2023-03-311-12/+10
|\ | | | | | | | | | | | | | | 429a452705 Autogen: Add target's C++ standard to moc_predef.h 21f812e57c Autogen: Split creation and setup of custom targets into separate steps Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !8359
| * Autogen: Split creation and setup of custom targets into separate stepsOrkun Tokdemir2023-03-241-12/+10
| | | | | | | | | | | | | | Defer the setup step until after compile features have been finalized on normal targets. Later this will help pass the information to Qt tools. Issue: #24624
* | macOS: Do not pass Apple-specific flags to llvm-stripBrad King2023-03-291-0/+29
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Since commit cf82300a63 (BinUtils: Clarify search logic and make it more consistent, 2021-05-27, v3.21.0-rc1~119^2~2) we prefer `llvm-strip` over `strip` when using Clang. However, since commit 20291e8e72 (install: Fix stripping on macOS, 2019-01-30, v3.14.0-rc1~31^2) on macOS we add flags `-u -r`, needed by Apple's `strip` for executables, but that `llvm-strip` does not need or support. Improve the condition to add Apple-specific flags only when the selected `strip` tool is Apple's. Note that Apple dylibs must be stripped with `-x` with either Apple's `strip` or `llvm-strip`. Fixes: #24601
* | Merge topic 'module-depends-static-lib-cycle'Brad King2023-03-271-2/+7
|\ \ | |/ |/| | | | | | | | | | | | | 01d7860fdb Ninja,Makefile: Restore Fortran module scanning in static library cycle 846baa7c5b cmGlobalGenerator: Factor out helper to check target ordering Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: buildbot <buildbot@kitware.com> Merge-request: !8363
| * cmGlobalGenerator: Factor out helper to check target orderingBrad King2023-03-241-2/+7
| |
* | cmMakefile: Store recursion depth limit as size_tBrad King2023-03-131-2/+0
| |
* | Deprecate "extra" generators in favor of cmake-file-api(7)Brad King2023-02-151-0/+10
| | | | | | | | | | | | | | | | | | | | | | The "extra" generators were created in CMake's early years to provide support for users of specific IDEs by directly generating their project files alongside make or ninja files. Nowadays the file-api provides a more generic, maintainable, well-tested, and robust way for IDEs to view CMake project build trees. Deprecate the legacy "extra" generators to encourage the corresponding IDEs to use the file-api. Fixes: #19090
* | cmGlobalGenerator: Avoid referencing CMAKE_CFG_INTDIRKyle Edwards2023-02-031-1/+1
|/
* Merge topic 'try_compile-verbose'Brad King2023-01-231-1/+1
|\ | | | | | | | | | | | | faa950a155 try_compile: Run native build tool with verbose output Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !8095
| * try_compile: Run native build tool with verbose outputBrad King2023-01-201-1/+1
| | | | | | | | | | | | Make the compiler command lines visible in the configure log. Issue: #23200
* | Merge topic 'configure-log'Brad King2023-01-201-8/+0
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | 317aac14ef cmake: Stop pointing users at logs on configure errors eae1398d09 cmake --system-information: Stop dumping CMake{Output,Error}.log Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: buildbot <buildbot@kitware.com> Merge-request: !8094
| * | cmake: Stop pointing users at logs on configure errorsBrad King2023-01-191-8/+0
| |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Since commit 18e1bfbb3c (cmake: On configure error suggest looking at CMake*.log files, 2013-07-09, v2.8.12~210^2), when configuring a project fails, we print `See also .../CMake{Output,Error}.log` near the end of the output. This was intended to help users find failures in system and compiler inspection checks, but for normal project errors the messages may be misleading. The logs may contain incidental errors that are part of normal operation and do not need to be addressed by the user. Since commit f6ed2585e5 (Modules: Record system inspection steps in the configure log, 2023-01-16), CMake's builtin modules no longer log information to the old-style `CMake{Output,Error}.log` files anyway, so stop mentioning them. Fixes: #22131 Issue: #23200
* | Merge topic 'print-configure-generate-time'Brad King2023-01-201-2/+19
|\ \ | |/ |/| | | | | | | | | | | | | 5f0c5ec49b cmake: Print configure/generate time Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: buildbot <buildbot@kitware.com> Acked-by: scivision <michael@scivision.dev> Merge-request: !8083
| * cmake: Print configure/generate timeKyle Edwards2023-01-191-2/+19
| |
* | cmValue: Use operator* explicitly to convert to std::string; avoid extra callVitaly Stakhovsky2023-01-161-1/+1
|/
* cmGlobalGenerator: factor out C++ module support checkingBen Boeckel2022-11-231-0/+15
| | | | This will simplify adding support to other generators.
* ASM_MARMASM: Add support for Microsoft ARM assembler languageIlia K2022-11-091-1/+2
| | | | | | https://learn.microsoft.com/en-us/cpp/assembler/arm/arm-assembler-reference Fixes: #23999
* USE_FOLDERS: Treat as on by defaultJuan Ramos2022-11-081-7/+6
| | | | | | | Add a policy to treat the `USE_FOLDERS` global property as ON by default if it is not set. Fixes: #21695
* CUDA: Revert "Always mark cuda toolkit as system include"Robert Maynard2022-10-171-9/+0
| | | | | | | | We need to revert this change as it can disable error messages when compiling invalid CUDA code. This reverts commit ea659b155d (CUDA: Always mark cuda toolkit as system include, 2022-06-27, v3.25.0-rc1~269^2).
* Genex LINK_LIBRARY: Add support for framework with postfixMarc Chevrier2022-09-211-5/+14
|
* Merge topic 'link-framework-with-multi-config-postfix'Brad King2022-09-151-1/+2
|\ | | | | | | | | | | | | fc06450ff4 Apple: Fix regression when linking a framework with postfix Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !7675
| * Apple: Fix regression when linking a framework with postfixMarc Chevrier2022-09-141-1/+2
| | | | | | | | | | | | | | Fix a regression caused by commit 40178f3c90 (cmGlobalGenerator: Add helper to split framework path, 2022-02-10, v3.24.0-rc1~661^2~1). Fixes: #23961
* | Merge topic 'check-library-properties-fix-performances-regression'Brad King2022-09-091-4/+4
|\ \ | |/ | | | | | | | | | | | | 985b4c82a6 Check link libraries properties: fix performances regression a47eef32a3 renames method FinalizeTargetCompileInfo() in FinalizeTargetConfiguration(). Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !7651
| * renames method FinalizeTargetCompileInfo() in FinalizeTargetConfiguration().Marc Chevrier2022-09-071-4/+4
| |
* | CUDA: Always mark cuda toolkit as system includeRobert Maynard2022-08-181-0/+9
|/ | | | Fixes: #23731
* VERIFY_INTERFACE_HEADER_SETS: Add verification target for allKyle Edwards2022-08-031-0/+8
| | | | Fixes: #23802
* Merge topic 'verify-interface-header-sets-add-compile-definitions' into ↵Brad King2022-07-281-29/+5
|\ | | | | | | | | | | | | | | | | | | release-3.24 27fd172d8d VERIFY_INTERFACE_HEADER_SETS: Finalize compile info for verify targets 626e641a19 cmTarget: Factor out FinalizeTargetCompileInfo() Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !7516
| * cmTarget: Factor out FinalizeTargetCompileInfo()Kyle Edwards2022-07-271-29/+5
| |
* | cmSystemTools: Factor out method to get Windows OS versionBrad King2022-07-251-31/+6
|/ | | | Factor the implementation out of `cmGlobalGenerator`.
* Merge topic 'export-try-compile-crash' into release-3.24Kyle Edwards2022-07-141-1/+3
|\ | | | | | | | | | | | | | | 29c7546a61 cmGlobalGenerator: Only compute build files for all targets Acked-by: Kitware Robot <kwrobot@kitware.com> Tested-by: buildbot <buildbot@kitware.com> Merge-request: !7472
| * cmGlobalGenerator: Only compute build files for all targetsKyle Edwards2022-07-131-1/+3
| | | | | | | | | | | | | | | | If we're creating generation objects for imported targets only, we don't need the export sets. Only compute build file generators if generating for all targets. Fixes: #23709
* | cmSystemTools: Fix 'ErrorOccurred' spellingFeRD (Frank Dana)2022-06-131-12/+12
| | | | | | | | | | | | | | | | Rename the booleans 's_ErrorOccured' and 's_FatalErrorOccured' to 's_ErrorOccurred' and 's_FatalErrorOccurred', respectively. Rename the getters and setters to 'Get[Fatal]ErrorOccurred' and 'Set[Fatal]ErrorOccurred', and fix all uses across the codebase.
* | Merge topic 'dependency-providers'Brad King2022-05-251-0/+5
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2aa83fa15b Dependency providers: Add find_package and FetchContent support 8a28368feb FetchContent: Don't discard non-empty SOURCE_DIR and BINARY_DIR 8ce9bb8a0c FetchContent: Don't leak internal variables 74a6ddc339 cmFindPackageCommand: Handle Makefile variable definitions more robustly Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: Gerhard Olsson <gerhard.nospam@gmail.com> Merge-request: !7276