summaryrefslogtreecommitdiffstats
path: root/Source
Commit message (Collapse)AuthorAgeFilesLines
* Merge topic 'cleanup-ConvertToIncludeReference'Brad King2021-12-026-39/+18
|\ | | | | | | | | | | | | | | 94a58e502b cmLocalGenerator: Remove unused IncludePathStyle infrastructure Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: buildbot <buildbot@kitware.com> Merge-request: !6777
| * cmLocalGenerator: Remove unused IncludePathStyle infrastructureBrad King2021-12-016-39/+18
| | | | | | | | | | | | It is unused since commit c564a3e3ff (Ninja: Always compile sources using absolute paths, 2021-05-19, v3.21.0-rc1~129^2), which left behind a FIXME comment to eventually remove it.
* | Merge topic 'semi-warnings'Brad King2021-12-025-30/+29
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | 4b548c1028 Source: Fix -Wmissing-variable-declarations warning 29ffa5f48c Source: fix -Wextra-semi-stmt warnings Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: buildbot <buildbot@kitware.com> Merge-request: !6758
| * | Source: Fix -Wmissing-variable-declarations warningSean McBride2021-12-012-4/+3
| | |
| * | Source: fix -Wextra-semi-stmt warningsSean McBride2021-12-013-26/+26
| |/
* | Merge topic 'vs-enum-class'Brad King2021-12-022-53/+58
|\ \ | | | | | | | | | | | | | | | | | | a80d95b114 cmVisualStudio10TargetGenerator: Change VsProjectType to be enum class Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !6776
| * | cmVisualStudio10TargetGenerator: Change VsProjectType to be enum classSumit Bhardwaj2021-12-012-53/+58
| | |
* | | Merge topic 'rpath-unrecognized-format'Brad King2021-12-021-4/+21
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 643fc46bdc file(RPATH): Restore tolerance of unknown formats if new RPATH is empty 5596cba7dc cmSystemTools: Remove unnecessary mark-as-used casts to void Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: buildbot <buildbot@kitware.com> Merge-request: !6779
| * | | file(RPATH): Restore tolerance of unknown formats if new RPATH is emptyBrad King2021-12-011-2/+21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Since commit 2e1149874d (cmSystemTools: Support multiple binary formats, 2021-06-14, v3.22.0-rc1~575^2) the `file(RPATH_...)` operations fail on files that are not ELF or XCOFF format. Previously the RPATH operations tolerated files of unknown format if the goal was to produce a file with an empty RPATH. Restore this tolerance in order to support setting an empty RPATH on GNU ld scripts. Fixes: #22963
| * | | cmSystemTools: Remove unnecessary mark-as-used casts to voidBrad King2021-12-011-2/+0
| | | | | | | | | | | | | | | | The `CheckRPath` arguments are always used now.
* | | | CMake Nightly Date StampKitware Robot2021-12-021-1/+1
| |_|/ |/| |
* | | Merge topic 'deps-quiet-rc'Brad King2021-12-011-1/+2
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | 1336a76380 cmcldeps: Suppress rc dummy output Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !6771
| * | | cmcldeps: Suppress rc dummy outputOrgad Shaneh2021-11-291-1/+2
| | | | | | | | | | | | | | | | | | | | Microsoft (R) Windows (R) Resource Compiler Version 10.0.10011.16384 Copyright (C) Microsoft Corporation. All rights reserved.
* | | | Merge topic 'mingw-strftime-crash'Brad King2021-12-011-1/+1
|\ \ \ \ | | |/ / | |/| / | |_|/ |/| | | | | | | | 992e6d7c5d mingw: fix calling convention for strftime() Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !6762
| * | mingw: fix calling convention for strftime()Christoph Reiter2021-11-301-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | `strftime` uses `__cdecl` and not `__stdcall`. This was exposed by refactoring in commit 26c9fbab46 (MINGW-w64: Fix string(TIMESTAMP) build on 32bits, 2021-11-16, v3.22.0~1^2). This fixes a crash creating a timestamp with clang+mingw-w64 targeting x86. Fixes: #22939
* | | CMake Nightly Date StampKitware Robot2021-12-011-1/+1
| | |
* | | CMake Nightly Date StampKitware Robot2021-11-301-1/+1
| |/ |/|
* | CMake Nightly Date StampKitware Robot2021-11-291-1/+1
| |
* | CMake Nightly Date StampKitware Robot2021-11-281-1/+1
| |
* | CMake Nightly Date StampKitware Robot2021-11-271-1/+1
| |
* | CMake Nightly Date StampKitware Robot2021-11-261-1/+1
| |
* | CMake Nightly Date StampKitware Robot2021-11-251-1/+1
| |
* | CMake Nightly Date StampKitware Robot2021-11-241-1/+1
| |
* | Merge topic 'iwyu-windows'Brad King2021-11-2343-53/+315
|\ \ | | | | | | | | | | | | | | | | | | | | | 0e58a5ea07 Source: Fix possible IWYU warnings in Windows generators Acked-by: Kitware Robot <kwrobot@kitware.com> Tested-by: buildbot <buildbot@kitware.com> Merge-request: !6749
| * | Source: Fix possible IWYU warnings in Windows generatorsNAKAMURA Takumi2021-11-1943-53/+315
| | |
* | | Merge topic 'env-init-configs'Brad King2021-11-232-2/+4
|\ \ \ | | |/ | |/| | | | | | | | | | | | | | | | 5b1ed2a646 try_compile: Do not use CMAKE_BUILD_TYPE or CMAKE_CONFIGURATION_TYPES env vars Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: buildbot <buildbot@kitware.com> Merge-request: !6755
| * | try_compile: Do not use CMAKE_BUILD_TYPE or CMAKE_CONFIGURATION_TYPES env varsBrad King2021-11-222-2/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Since: * commit e216b9bbd3 (cmake: Allow CMAKE_BUILD_TYPE to be set by environment variable, 2021-06-29, v3.22.0-rc1~503^2~1) * commit ef56eefc9b (cmake: Allow CMAKE_CONFIGURATION_TYPES to be set by environment variable, 2021-06-29, v3.22.0-rc1~503^2) the environment variables are supposed to provide defaults for settings the user otherwise can control via cache entries. However, they accidentally affect `try_compile` projects too, which are supposed to be programmatically controlled. Fixes: #22935
| * | CMake 3.22.0v3.22.0Brad King2021-11-181-1/+1
| | |
* | | CMake Nightly Date StampKitware Robot2021-11-231-1/+1
| | |
* | | Merge topic 'cpack-productbuild-identifier'Brad King2021-11-222-5/+20
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | 7213ceb869 CPack/productbuild: Add option to customize product identifier Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !6738
| * | | CPack/productbuild: Add option to customize product identifierGreg Fiumara2021-11-182-5/+20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This adds a new option, CPACK_PRODUCTBUILD_IDENTIFIER, which allows for customization of the productbuild product identifier within the CPack productbuild generator. Fixes: #20830
* | | | Merge topic 'automoc-cross-windows'Brad King2021-11-221-3/+3
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 1e550ad02d AutoMoc: Only add the WIN32 define if the target system is Windows Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !6751
| * | | | AutoMoc: Only add the WIN32 define if the target system is WindowsJoerg Bornemann2021-11-191-3/+3
| | |_|/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When there's no moc_predefs.h generated, we add the WIN32 define as fallback. Before this change, we added the WIN32 define if the host system was Windows. That's wrong when cross-compiling. Now we're checking whether the target system is Windows. Fixes: #22933
* | | | CMake Nightly Date StampKitware Robot2021-11-221-1/+1
| | | |
* | | | CMake Nightly Date StampKitware Robot2021-11-211-1/+1
| | | |
* | | | CMake Nightly Date StampKitware Robot2021-11-201-1/+1
|/ / /
* | | Merge topic 'custom-command-unique_ptr'Brad King2021-11-1920-572/+500
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 3bb2542535 cmMakefile: Simplify Add*Command and adopt to cmAddCustom*Command c46b041a3b cmLocalGenerator: Simplify Add{Custom,Utility}Command 68b4e3b255 cmGlobalVisualStudio8Generator: Fix the misaligned argument, stdPipesUTF8 e37511ae7e cmMakefile: Simplify detail:::Add{Custom,Utility}Command 90e1206f25 cmMakefile: Introduce GeneratorAction as the class. 9b31a97748 cmCustomCommand: Move constructor arguments to individual setters d0158b765b cmMakefile: Move CMP0116 lookup into Add{Custom,Utility}Command Acked-by: Kitware Robot <kwrobot@kitware.com> Tested-by: buildbot <buildbot@kitware.com> Merge-request: !6708
| * | | cmMakefile: Simplify Add*Command and adopt to cmAddCustom*CommandNAKAMURA Takumi2021-11-188-174/+133
| | | |
| * | | cmLocalGenerator: Simplify Add{Custom,Utility}CommandNAKAMURA Takumi2021-11-188-232/+154
| | | |
| * | | cmGlobalVisualStudio8Generator: Fix the misaligned argument, stdPipesUTF8NAKAMURA Takumi2021-11-181-5/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | The call to AddCustomCommandToTarget for "Checking File Globs" had misaligned arguments and previously passed `stdPipesUTF8` as `escapeOldStyle`. For now, set `escapeOldStyle` as `true`. Also `stdPipesUTF8` is `true` here.
| * | | cmMakefile: Simplify detail:::Add{Custom,Utility}CommandNAKAMURA Takumi2021-11-184-188/+183
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Note 1: `detail::AddCustomCommandToTarget()` resets cc, since cc is not moved away. Note 2: In `detail::AddUtilityCommand()`, a few vars are preserved before using. Their refs will be alive in most cases, but cc might be destroyed in the future.
| * | | cmMakefile: Introduce GeneratorAction as the class.NAKAMURA Takumi2021-11-182-5/+32
| | | |
| * | | cmCustomCommand: Move constructor arguments to individual settersNAKAMURA Takumi2021-11-188-59/+95
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Make `cmCustomCommand` have just only default constructor. Use each setter instead. This follows the builder pattern. Introduce `cc::SetOutputs(std::string output)`. This will be used later, as substitution for `cc::SetOutputs({output})`.
| * | | cmMakefile: Move CMP0116 lookup into Add{Custom,Utility}CommandNAKAMURA Takumi2021-11-188-75/+58
| | | | | | | | | | | | | | | | Avoid repeating it at every call site.
* | | | Merge topic 'ghs_initial_setup'Brad King2021-11-192-131/+68
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | aa59eaac4f GHS: Allow setting GHS variables from toolchain file ab6f0b51b1 GHS: Add note about -T and path style a55b5c4e18 GHS: Update BSP selection logic 0427f22539 GHS: Update RTOS selection logic e006b87cc6 GHS: GHSMULTI - Update documentation to match implementation 83eb5695e9 GHS: Update toolset selection logic 8114ddcad1 GHS: Continue splitting variables used by generator 831607889f GHS: Update selection of primaryTarget in MULTI project file ... Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: buildbot <buildbot@kitware.com> Merge-request: !6715
| * | | | GHS: Allow setting GHS variables from toolchain fileFred Baksik2021-11-151-19/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Update generator to use the current variable definition, not the CACHE definition. * Avoid overwriting toolchain variables and avoid developer warnings when setting up the GHS variables. -- A cache entry is only required when: a) The toolchain uses set( CACHE ) to set the variable b) A -D or preset value was used to set the variable The cache entry is required so that the TYPE gets set properly. -- Avoid the Policy CMP0126 warnings: setting cache variable when normal variable exists * Move GHS_PRIMARY_TARGET back into area so non-GHS generator toolchain file can trigger the OS search.
| * | | | GHS: Update BSP selection logicFred Baksik2021-11-151-17/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Selection of a BSP only needs to be performed if not set by user. Remove all the logic for printing error and status messages about BSP selection. These messages also breaks CMake tests. NOTE: If BSP selection fails then the compiler checks will result in a build error. The build error will report that the BSP does not exist.
| * | | | GHS: Update RTOS selection logicFred Baksik2021-11-152-28/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Selection of an RTOS only needs to be performed if not set by user. Avoid CMake developer warnings for setting GHS_OS_DIR multiple times. Instead only set it once after searching has been performed. Remove all the logic for printing error and status messages about RTOS selection. This was broken and reporting incorrect messages. These messages also breaks CMake tests. NOTE: If RTOS selection fails then the compiler checks will result in a build error. The build error will report that the RTOS "GHS_OS_DIR-NOT-SPECIFIED" does not exist.
| * | | | GHS: Update toolset selection logicFred Baksik2021-11-152-43/+46
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | -- Ensure that GHS_TOOLSET_ROOT is used as a path * Converts directory path slashes to CMake style -- Use ComparePath() to properly check for path changes of build tool * Accounts for Windows file-system case insensitivity. -- Don't print message "defaulting" messages (this causes CMake test failures) -- Don't force update CMAKE_GENERATOR_TOOLSET back into cache when `-T` is not used on initial configure. This change avoids an unnessary error message when accidentally using `-T` in subsequent runs but the same tools are always used. -- Use IssueMessage() for error messages.
| * | | | GHS: Update selection of primaryTarget in MULTI project fileFred Baksik2021-11-151-37/+21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Changes to ``-A`` handling: * Don't force CMAKE_GENERATOR_PLATFORM into cache when using default value (breaks using CMake presets). * Don't print message when using default value (breaks CMake tests). Changes to ``GHS_PRIMARY_TARGET`` handling: * Add as a cache variable so its known to GUI * Don't always include``GHS_TARGET_PLATFORM``, it's only needed if ``GHS_PRIMARY_TARGET`` wasn't set by the user. * Set ``GHS_PRIMARY_TARGET`` during platform selection instead of when a language is enabled. By performing this sooner ``GHS_TARGET_PLATFORM`` is not always required to be set into cache.