summaryrefslogtreecommitdiffstats
path: root/Source
Commit message (Collapse)AuthorAgeFilesLines
* Refactor: Deduplicate code of `createDebPackages()`Alex Turbov2021-07-131-22/+19
| | | | Also, fix incorrect `retval` accumulation.
* CPack/DEB: dbgsym package not generated for non-component packagingAlex Turbov2021-07-132-45/+37
| | | | Fix: #19735
* Refactor: Extract packaged files finder into a functionAlex Turbov2021-07-131-45/+34
|
* Refactor: cmCPackDebGenerator::PackageComponents handle `else` firstAlex Turbov2021-07-131-27/+27
| | | | Also, return early to reduce nesting level of the function body.
* Refactor: Change return value to bool for private membersAlex Turbov2021-07-132-20/+9
| | | | | The `cmCPackDebGenerator::createDeb()` and `cmCPackDebGenerator::createDbgsymDDeb()` in fact have boolean return value.
* Refactor: Drop unnecessary `if` before `return`Alex Turbov2021-07-131-8/+2
|
* Refactor: Drop useless assignments of `retval` before returnAlex Turbov2021-07-131-4/+2
|
* Merge topic 'ctest-environment-modifications'Brad King2021-07-135-3/+151
|\ | | | | | | | | | | | | | | de4f1f26b0 CTest: add an ENVIRONMENT_MODIFICATION property 4c757fa3c8 Help/prop_test/ENVIRONMENT: clarify the scope of the changes Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !6299
| * CTest: add an ENVIRONMENT_MODIFICATION propertyBen Boeckel2021-07-095-3/+151
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This property allows projects to modify environment variables at test time rather than trying to guess what the state should be based on what is present at configure time. Of particular interest is the ability to use a `PATH` present at test time while adding entries known to be necessary for the test itself. There are multiple operations provided to modify variables, including: - setting and unsetting - appending and prepending as: - strings - path lists - CMake lists Additionally, a `reset` action is provided to cancel any prior modifications to that particular variable in the case of incremental additions to the test property.
* | Merge topic 'state-project-kind'Brad King2021-07-137-51/+42
|\ \ | | | | | | | | | | | | | | | | | | | | | 6c440ea3ce cmake: Model normal and try-compile project kinds explicitly 2065bd73cb cmState: Construct with mode Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !6337
| * | cmake: Model normal and try-compile project kinds explicitlyBrad King2021-07-126-35/+32
| | | | | | | | | | | | | | | Construct with the project kind instead of mutating state after construction.
| * | cmState: Construct with modeBrad King2021-07-124-19/+13
| | |
* | | Merge topic 'vs-CMAKE_MSVCIDE_RUN_PATH'Brad King2021-07-131-1/+1
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | 542bd343e3 VS: Always enable CMAKE_MSVCIDE_RUN_PATH Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !6334
| * | | VS: Always enable CMAKE_MSVCIDE_RUN_PATHAsit Dhal2021-07-121-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | Do not require a language to be enabled. Fixes: #22343
* | | | Merge topic 'file-grd-arch'Brad King2021-07-134-2/+56
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 5aeda18297 file(GET_RUNTIME_DEPENDENCIES): Use cmELF unconditionally 17aa96bb7a Merge branch 'master' into file-grd-arch b2c03347b0 file(GET_RUNTIME_DEPENDENCIES): Check architecture of dependencies Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !6339
| * | | | file(GET_RUNTIME_DEPENDENCIES): Use cmELF unconditionallyKyle Edwards2021-07-121-10/+1
| | | | | | | | | | | | | | | | | | | | | | | | | Starting with CMake 3.22, cmELF.h is always available, so use it unconditionally.
| * | | | Merge branch 'master' into file-grd-archKyle Edwards2021-07-1251-572/+688
| |\ \ \ \ | | | |/ / | | |/| |
| * | | | file(GET_RUNTIME_DEPENDENCIES): Check architecture of dependenciesKyle Edwards2021-07-124-2/+65
| | | | | | | | | | | | | | | | | | | | Fixes: #22106
| * | | | CMake 3.21.0-rc3v3.21.0-rc3Brad King2021-07-081-1/+1
| | | | |
| * | | | Merge topic 'cmake-presets-list-no-generator' into release-3.21Brad King2021-07-071-0/+3
| |\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | d9a3c9fad5 CMakePresets.json: Make --list-presets show presets with no generator Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !6314
| * \ \ \ \ Merge topic 'xcode13-old-buildsystem' into release-3.21Brad King2021-07-071-1/+5
| |\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 71a2664ebb Xcode: Ignore deprecated build system Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !6309
* | | | | | | CMake Nightly Date StampKitware Robot2021-07-131-1/+1
| |_|_|/ / / |/| | | | |
* | | | | | Merge topic 'LWYU-externalization'Brad King2021-07-129-40/+92
|\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 14e57e9637 LINK_WHAT_YOU_USE feature: externalize configuration 9c5132a586 PGI: Fix "LINKER:" prefix generated separator 8a93de080c cmGeneratorTarget: Add method for LINKER: prefix translation Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !6306
| * | | | | | LINK_WHAT_YOU_USE feature: externalize configurationMarc Chevrier2021-07-097-40/+82
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Currently, this feature is only supported on ELF platforms. So, the property LINK_WHAT_YOU_USE will be ignored for other plateforms. Moreover, flags and commands are now controled by CMake variables. Fixes: #20174
| * | | | | | cmGeneratorTarget: Add method for LINKER: prefix translationMarc Chevrier2021-07-082-0/+10
| | | | | | |
* | | | | | | Merge topic 'target-stable-order'Brad King2021-07-124-19/+34
|\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 9e9ab61e2f cmGlobalGenerator: Process targets in a stable order 8a812dde61 cmGlobalGenerator: Use cmMakefile::CreateNewTarget to add global targets 854dcb0d01 cmMakefile: Split out CreateNewTarget from AddNewTarget Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !6267
| * | | | | | | cmGlobalGenerator: Process targets in a stable orderNAKAMURA Takumi2021-07-081-3/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | `cmMakefile::Targets` is meant for efficient lookup but does not have a stable order. Use `cmMakefile::OrderedTargets` instead.
| * | | | | | | cmGlobalGenerator: Use cmMakefile::CreateNewTarget to add global targetsNAKAMURA Takumi2021-07-082-10/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | `cmMakefile::CreateNewTarget` updates also `cmMakefile::OrderedTargets`.
| * | | | | | | cmMakefile: Split out CreateNewTarget from AddNewTargetNAKAMURA Takumi2021-07-082-6/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | `CreateNewTarget` tells whether the target is inserted or not.
* | | | | | | | CMake Nightly Date StampKitware Robot2021-07-121-1/+1
| |_|_|_|_|/ / |/| | | | | |
* | | | | | | CMake Nightly Date StampKitware Robot2021-07-111-1/+1
| | | | | | |
* | | | | | | CMake Nightly Date StampKitware Robot2021-07-101-1/+1
| | | | | | |
* | | | | | | CMake Nightly Date StampKitware Robot2021-07-091-1/+1
| | | | | | |
* | | | | | | Merge topic 'find_package-required-var'Brad King2021-07-081-3/+21
|\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | a2e9fe38e4 find_package: Add variable to make package REQUIRED Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: Michael Hirsch <michael@scivision.dev> Merge-request: !6316
| * | | | | | | find_package: Add variable to make package REQUIREDEugene Shalygin2021-07-081-3/+21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add a `CMAKE_REQUIRE_FIND_PACKAGE_<PackageName>` variable is complement to `CMAKE_DISABLE_FIND_PACKAGE_<PackageName>` with just the opposite behaviour: it turns non-required find_package call into the required one. While optional package dependencies usually result in simple and clean build logic, sometimes people want to be sure those optional dependencies will be found and used. Examples are reproducible builds and build instructions for 3rd parties. People choose to make find_package calls REQUIRED and put them behind an option(). Such workarounds blend build logic with build environment management and do not look elegant.
* | | | | | | | Merge topic 'CPATH_symlinks'Brad King2021-07-082-12/+23
|\ \ \ \ \ \ \ \ | |_|_|/ / / / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | c00f928ce1 Do not exclude include directory symlinks to entries of CPATH 5c02964aff cmLocalGenerator: Simplify CPATH lookup loop 86595b3002 cmLocalGenerator: Clarify check for membership in multiple sets 10969fd003 cmLocalGenerator: Remove unnecessary parentheses in a condition 3fd56472c6 cmLocalGenerator: Store realpath lookup result in a variable 429fb28f25 cmLocalGenerator: Factor out repeated condition into local variable Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !6313
| * | | | | | | Do not exclude include directory symlinks to entries of CPATHAlexander Grund2021-07-072-4/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Extend the fix from commit 2d0b0e2b9d (Do not exclude include directories made implicit by CPATH, 2019-05-29, v3.14.5~2^2) to cover include directories that are symlinks to paths listed in `CPATH`. Compare resolved paths against resolved entries of `CPATH`. Resolve the entries as late as possible in case symlinks change. Fixes: #22383
| * | | | | | | cmLocalGenerator: Simplify CPATH lookup loopAlexander Grund2021-07-071-3/+2
| | | | | | | |
| * | | | | | | cmLocalGenerator: Clarify check for membership in multiple setsAlexander Grund2021-07-071-3/+3
| | | | | | | |
| * | | | | | | cmLocalGenerator: Remove unnecessary parentheses in a conditionAlexander Grund2021-07-071-4/+4
| | | | | | | |
| * | | | | | | cmLocalGenerator: Store realpath lookup result in a variableAlexander Grund2021-07-071-2/+3
| | | | | | | |
| * | | | | | | cmLocalGenerator: Factor out repeated condition into local variableAlexander Grund2021-07-061-3/+4
| | | | | | | |
* | | | | | | | CMake Nightly Date StampKitware Robot2021-07-081-1/+1
| |/ / / / / / |/| | | | | |
* | | | | | | Merge topic 'cmake-presets-list-no-generator'Brad King2021-07-071-0/+3
|\ \ \ \ \ \ \ | | |_|_|_|/ / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | d9a3c9fad5 CMakePresets.json: Make --list-presets show presets with no generator Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !6314
| * | | | | | CMakePresets.json: Make --list-presets show presets with no generatorKyle Edwards2021-07-061-0/+3
| | |_|/ / / | |/| | | | | | | | | | | | | | | | Fixes: #22389
* | | | | | Merge topic 'xcode13-old-buildsystem'Brad King2021-07-071-1/+5
|\ \ \ \ \ \ | | |_|_|/ / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | 71a2664ebb Xcode: Ignore deprecated build system Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !6309
| * | | | | Xcode: Ignore deprecated build systemGregor Jasny2021-07-061-1/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | With Xcode 13 the key to suppress the check has changed. Tested with Xcode 12.5 and 13.0-beta2.
* | | | | | CMake Nightly Date StampKitware Robot2021-07-071-1/+1
| |_|_|/ / |/| | | |
* | | | | Merge topic 'makefile-normalize-depfile'Brad King2021-07-063-6/+17
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 30926620bb Merge branch 'backport-3.21-makefile-normalize-depfile' 6bc6ffb9a9 Merge branch 'backport-3.20-makefile-normalize-depfile' 6a6efdcaed Makefiles: Normalize compiler-generated depfile paths Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !6297
| * \ \ \ \ Merge branch 'backport-3.21-makefile-normalize-depfile'Brad King2021-07-023-6/+17
| |\ \ \ \ \ | | | |/ / / | | |/| | |