summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Ninja Generators: Homogenize configuration with MakefilesMarc Chevrier2020-12-016-47/+78
| | | | | * Use same configuration variables to configure dependencies * Abstract Ninja deps format from compiler one
* CMake Nightly Date StampKitware Robot2020-12-011-1/+1
|
* Merge topic 'makefiles-compiler-deps-optims'Brad King2020-11-3069-375/+1413
|\ | | | | | | | | | | | | | | | | | | | | | | 2c71d051fa Makefiles Generators: use compiler for dependencies generation afd0f6785d Refactoring: Abstract Makefile line continuation format b6068ce407 Refactoring: enhance include file filtering 3401403f69 Refactoring: Introduce place-holder for dependency target. a97c41bf8b Refactoring: Makefiles Generators: Add support for various depends scanners Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: Brad King <brad.king@kitware.com> Merge-request: !5528
| * Makefiles Generators: use compiler for dependencies generationMarc Chevrier2020-11-2952-270/+1312
| | | | | | | | | | | | | | | | | | | | | | Each source compilation generates a dependencies file. These dependencies files are consolidated in one file per target. This consolidation is done as part of command 'cmake -E cmake_depends` launched before evaluation of makefile dependency graph. The consolidation uses the same approach as `CMake` dependencies management. Fixes: #21321
| * Refactoring: Abstract Makefile line continuation formatMarc Chevrier2020-11-284-9/+6
| |
| * Refactoring: enhance include file filteringMarc Chevrier2020-11-281-24/+14
| | | | | | | | | | In preparation of support of 'CMAKE_DEPENDS_IN_PROJECT_ONLY' when dependencies are generated by the compiler.
| * Refactoring: Introduce place-holder for dependency target.Marc Chevrier2020-11-2820-66/+66
| | | | | | | | | | | | | | | | These changes are in preparation of compiler generated dependencies support for Makefiles generators * compiler output and dependency target can be different for Makefiles generators * resolve inconsistency naming for dependency file place-holder
| * Refactoring: Makefiles Generators: Add support for various depends scannersMarc Chevrier2020-11-284-19/+28
| |
* | Merge topic 'make-GENERATED-visible-from-any-scope'Brad King2020-11-30208-56/+5860
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 573d51201a GENERATED prop: Set CMP0118 to NEW for some (unrelated) tests 6624b65b3f GENERATED prop: Add implementation for policy CMP0118 being set to NEW b14fe704f8 GENERATED prop: Simplify determining the language of a source file ca4ce458a3 GENERATED prop: Check CMP0118 policy and warn in certain situations 0eb30f175e GENERATED prop: Introducing policy CMP0118 and its documentation 78c8d95605 GENERATED prop: Add some tests before introducing changes with CMP0118 e01527619f Simplify code by calling a function directly instead of duplicating it 75cb8615e9 Fix typo in function name Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !5308
| * | GENERATED prop: Set CMP0118 to NEW for some (unrelated) testsDeniz Bahadir2020-11-242-2/+2
| | | | | | | | | | | | | | | | | | * Adjusting the (unrelated) RunCMake.Ninja test to set CMP0118 to `NEW`. * Adjusting the (unrelated) RunCMake.FileAPI test to set CMP0118 to `NEW`.
| * | GENERATED prop: Add implementation for policy CMP0118 being set to NEWDeniz Bahadir2020-11-2491-837/+2304
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Adding implementation for policy CMP0118 being set to `NEW`. * Adding new tests for policy CMP0118 being set to `NEW`. * Checking the `GENERATED` property with `get_source_file_property` or `get_property` now always returns exactly `1` or `0`. No other values will be returned. Note, that this is a backwards-incompatible change, even when policy CMP0118 is unset or set to `OLD`. * Additionally, as `get_source_file_property` and `get_property` now always check if a source-file was marked globally visible, even when CMP0118 is unset or set to `OLD`, they possibly return `1` where they might have returned `0` before the changes introduced by this commit. Note, that this is a backwards-incompatible change, even when policy CMP0118 is unset or set to `OLD`. * As a consequence, the tests for policy CMP0118 being unset or set to `OLD` got slightly adjusted, too, to reflect these changes in behavior.
| * | GENERATED prop: Simplify determining the language of a source fileDeniz Bahadir2020-11-241-9/+7
| | | | | | | | | | | | | | | This simplification will help the later following structural changes of class `cmSourceFile`.
| * | GENERATED prop: Check CMP0118 policy and warn in certain situationsDeniz Bahadir2020-11-2475-21/+1813
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Adding tests for CMP0118 being unset (aka set to `WARN`). * Adjusting the (unrelated) RunCMake.CMP0026 test to set CMP0118 to `NEW`, * Adjusting the (unrelated) RunCMake.Ninja test to set CMP0118 to `OLD`. * Adjusting the (unrelated) RunCMake.FileAPI test to set CMP0118 to `OLD`. Note: Setting CMP0118 to `NEW` and modifying the `GENERATED` property with `set_property` or `set_source_files_properties` will currently NOT set that property because the implementation is still to come.
| * | GENERATED prop: Introducing policy CMP0118 and its documentationDeniz Bahadir2020-11-249-1/+61
| | | | | | | | | | | | | | | Note: This is currently only defining the CMP0118 policy and providing its documentation, however, the implementation is still not using it.
| * | GENERATED prop: Add some tests before introducing changes with CMP0118Deniz Bahadir2020-11-2482-0/+2492
| | | | | | | | | | | | | | | | | | | | | These are tests which shall assure that the upcoming changes regarding the `GENERATED` source-file property and the associated new policy CMP0118 do not change (or only slightly change) the current, observable behavior when policy CMP0118 is set to `OLD`.
| * | Simplify code by calling a function directly instead of duplicating itDeniz Bahadir2020-11-191-6/+1
| | |
| * | Fix typo in function nameDeniz Bahadir2020-11-175-6/+6
| | |
* | | Merge branch 'release-3.19'Brad King2020-11-300-0/+0
|\ \ \
| * \ \ Merge topic 'correct_check_compiler_flag_regression' into release-3.19Brad King2020-11-303-7/+8
| |\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 72f6b4bfbe Modules: Rename Internal/CMake{CheckCompiler => TryCompilerOrLinker}Flag Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: Kumar Gala <kumar.gala@gmail.com> Merge-request: !5540
* | \ \ \ Merge topic 'correct_check_compiler_flag_regression'Brad King2020-11-303-7/+8
|\ \ \ \ \ | | |/ / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | 72f6b4bfbe Modules: Rename Internal/CMake{CheckCompiler => TryCompilerOrLinker}Flag Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: Kumar Gala <kumar.gala@gmail.com> Merge-request: !5540
| * | | | Modules: Rename Internal/CMake{CheckCompiler => TryCompilerOrLinker}FlagRobert Maynard2020-11-253-7/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Rename the `CheckPIESupported` helper functions so that they don't clobber other internal functions. Also rename them to document they can't be unified with `CheckCompilerFlag`. Fixes: #21497
* | | | | Merge branch 'release-3.19'Brad King2020-11-300-0/+0
|\ \ \ \ \ | | |/ / / | |/| | |
| * | | | Merge topic 'enable-extensions-on-qnx' into release-3.19Brad King2020-11-301-3/+6
| |\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 34f6d76755 QNX: Do not disable compiler extensions for CMake itself Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !5537
* | \ \ \ \ Merge topic 'enable-extensions-on-qnx'Brad King2020-11-301-3/+6
|\ \ \ \ \ \ | | |/ / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | 34f6d76755 QNX: Do not disable compiler extensions for CMake itself Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !5537
| * | | | | QNX: Do not disable compiler extensions for CMake itselfStephen Kelly2020-11-251-3/+6
| | |/ / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The `set(CMAKE_CXX_EXTENSIONS FALSE)` option has the effect of passing compile option `-std=c++NN` instead of `-std=gnu++NN`. On some platforms, the latter form (or the secondary effects that it has, such as setting _XOPEN_SOURCE) is required. This typically affects platforms such as mingw, cygwin and QNX. The GNU-like compiers default to `-std=gnu++NN`, which means that users can typically build source code on those platforms by default. While the `set(CMAKE_CXX_EXTENSIONS FALSE)` option was set here in commit f034b0f6 (CMake compilation: do not use compiler extensions, 2020-03-14), the other changes in that commit added `#defines` which become required in the absense of use of `-std=gnu++NN`. However, only platforms regularly tested in the cmake dashboard were ported, as is reasonable. That made CMake fail to compile on QNX and perhaps other platforms which for which no one is submitting regular testing to the cmake dashboard. Make the `set(CMAKE_CXX_EXTENSIONS FALSE)` option conditional on non-QNX to restore the QNX build. Issue: #21503
* | | | | Merge branch 'release-3.19'Brad King2020-11-300-0/+0
|\ \ \ \ \ | | |/ / / | |/| | |
| * | | | Merge topic 'check-lang-conditions' into release-3.19Brad King2020-11-3022-23/+62
| |\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | f3d4254b3d Check*: Tolerate variables set with names of languages 01d91ae5f2 Tests: Fix RunCMake.Check* conditions for enabling Fortran Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: Robert Maynard <robert.maynard@kitware.com> Merge-request: !5536
* | \ \ \ \ Merge topic 'check-lang-conditions'Brad King2020-11-3022-23/+62
|\ \ \ \ \ \ | | |/ / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | f3d4254b3d Check*: Tolerate variables set with names of languages 01d91ae5f2 Tests: Fix RunCMake.Check* conditions for enabling Fortran Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: Robert Maynard <robert.maynard@kitware.com> Merge-request: !5536
| * | | | | Check*: Tolerate variables set with names of languagesBrad King2020-11-2521-20/+56
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fix the language checks added by commit 90dead024c (CheckCompilerFlag: unified way to check compiler flags per language, 2020-09-25, v3.19.0-rc1~88^2), commit 10ae907de0 (CheckSoureCompiles: Add a unified way to check if a source compiles, 2020-09-14, v3.19.0-rc1~118^2~1), and commit 357e2ef429 (CheckSoureRuns: Add a unified way to check if a source runs, 2020-09-14, v3.19.0-rc1~118^2) to work when variables of the language names are set. Fixes: #21500
| * | | | | Tests: Fix RunCMake.Check* conditions for enabling FortranBrad King2020-11-251-3/+6
| | |/ / / | |/| | |
* | | | | Merge topic 'xcode-embed-frameworks'Craig Scott2020-11-301-0/+9
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 7c7b879e1f Help: Add missing release note for XCODE_EMBED_* Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !5550
| * | | | | Help: Add missing release note for XCODE_EMBED_*Craig Scott2020-11-291-0/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In 5651901c54 (Xcode: add support for embedding frameworks, 2020-10-24) we neglected to add a release note for the new target properties that were added.
* | | | | | CMake Nightly Date StampKitware Robot2020-11-301-1/+1
| | | | | |
* | | | | | Merge topic 'xcode-embed-frameworks'Craig Scott2020-11-2922-1/+317
|\ \ \ \ \ \ | |/ / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 5651901c54 Xcode: add support for embedding frameworks Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: Cameron Lowell Palmer <cameron.palmer@icloud.com> Merge-request: !5418
| * | | | | Xcode: add support for embedding frameworksGusts Kaksis2020-11-2822-1/+317
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This commit also prepares for embedding things other than frameworks. In the future, we may want to embed resources and other types supported by Xcode, so the target properties have been documented in a way that clearly signals the future intent.
* | | | | | Merge branch 'release-3.19'Craig Scott2020-11-290-0/+0
|\ \ \ \ \ \ | | |_|/ / / | |/| | | |
| * | | | | Merge topic 'presets-docs-bug' into release-3.19Craig Scott2020-11-291-1/+1
| |\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ca289abea5 Help: Fix presets typo (longDescription to displayName) Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !5541
* | \ \ \ \ \ Merge topic 'presets-docs-bug'Craig Scott2020-11-291-1/+1
|\ \ \ \ \ \ \ | | |/ / / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ca289abea5 Help: Fix presets typo (longDescription to displayName) Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !5541
| * | | | | | Help: Fix presets typo (longDescription to displayName)Sam Freed2020-11-281-1/+1
| | |_|/ / / | |/| | | |
* | | | | | CMake Nightly Date StampKitware Robot2020-11-291-1/+1
| | | | | |
* | | | | | Merge topic 'ctest-less-findy'Craig Scott2020-11-281-9/+8
|\ \ \ \ \ \ | |_|_|_|_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | 705e31a31b CTest: only look for update executables when needed Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !5542
| * | | | | CTest: only look for update executables when neededSeth R Johnson2020-11-261-9/+8
| | | | | |
* | | | | | Merge branch 'release-3.19'Marc Chevrier2020-11-280-0/+0
|\ \ \ \ \ \ | | |_|/ / / | |/| | | |
| * | | | | Merge topic 'FPHSA-usable-outside-find_package' into release-3.19Marc Chevrier2020-11-281-2/+7
| |\ \ \ \ \ | | |_|/ / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | 14ecf9c2f6 FPHSA: ensure it can be used outside 'find_package' Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !5539
* | | | | | Merge topic 'FPHSA-usable-outside-find_package'Marc Chevrier2020-11-281-2/+7
|\ \ \ \ \ \ | | |/ / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | 14ecf9c2f6 FPHSA: ensure it can be used outside 'find_package' Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !5539
| * | | | | FPHSA: ensure it can be used outside 'find_package'Marc Chevrier2020-11-251-2/+7
| | | | | | | | | | | | | | | | | | | | | | | | Fixes: #21505
* | | | | | CMake Nightly Date StampKitware Robot2020-11-281-1/+1
| |_|_|/ / |/| | | |
* | | | | CMake Nightly Date StampKitware Robot2020-11-271-1/+1
| | | | |
* | | | | CMake Nightly Date StampKitware Robot2020-11-261-1/+1
| | | | |
* | | | | Merge branch 'release-3.19'Brad King2020-11-250-0/+0
|\ \ \ \ \ | | |/ / / | |/| | |