summaryrefslogtreecommitdiffstats
path: root/Source/cmLocalGenerator.cxx
Commit message (Collapse)AuthorAgeFilesLines
* Merge topic 'unity-no-duplicate-path'Brad King2019-11-261-13/+16
|\ | | | | | | | | | | | | 43ffd2c35c Unity: No repeated path for internal generated unity files Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !4077
| * Unity: No repeated path for internal generated unity filesCristian Adam2019-11-251-13/+16
| | | | | | | | Fixes: #20002
* | Merge topic 'objc-standard-fix'Brad King2019-11-151-14/+29
|\ \ | |/ | | | | | | | | | | | | 6a818b6931 ObjC: Proper initialization of ObjC/XX standard properties Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: Robert Maynard <robert.maynard@kitware.com> Merge-request: !4050
| * ObjC: Proper initialization of ObjC/XX standard propertiesCristian Adam2019-11-141-14/+29
| | | | | | | | | | | | | | | | Fix logic added by commit 81566557d5 (ObjC: Initialize ObjC/XX standard properties from C/C++ counterparts, 2019-11-09) to account for cases when the CXX standard is not explicitly set. Also, do not copy the `*_STANDARD_REQUIRED` and `*_EXTENSIONS` properties unless we copied the `*_STANDARD` property.
* | Merge topic 'objc-standard'Brad King2019-11-131-0/+29
|\ \ | |/ | | | | | | | | | | 81566557d5 ObjC: Initialize ObjC/XX standard properties from C/C++ counterparts Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !4022
| * ObjC: Initialize ObjC/XX standard properties from C/C++ counterpartsCristian Adam2019-11-121-0/+29
| | | | | | | | Fixes: #19937
| * Merge topic 'unity-HEADER_FILE_ONLY' into release-3.16Brad King2019-11-121-3/+3
| |\ | | | | | | | | | | | | | | | | | | 9a5418320e Unity: Don't include sources with HEADER_FILE_ONLY property set Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !4023
| * \ Merge topic 'resolve-full-path-at-generate-time' into release-3.16Brad King2019-11-121-1/+1
| |\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | 48d1456b3d UnityBuild: Resolve full paths of unity source includes ec2f130aa9 cmFileAPI: Resolve full path in PCH source comparison Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !4029
* | \ \ Merge topic 'modernize-memory-management'Brad King2019-11-121-33/+33
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | f93385283f cmLocalGenerator: modernize memory management 101b5288ff cmAlgorithm: Extend cmAppend capabilities Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !4028
| * | | | cmLocalGenerator: modernize memory managementMarc Chevrier2019-11-111-33/+33
| | | | |
* | | | | Merge topic 'unity-HEADER_FILE_ONLY'Brad King2019-11-121-3/+3
|\ \ \ \ \ | | |_|_|/ | |/| | | | | | | | | | | | | | | | | | | | | | | 9a5418320e Unity: Don't include sources with HEADER_FILE_ONLY property set Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !4023
| * | | | Unity: Don't include sources with HEADER_FILE_ONLY property setCristian Adam2019-11-111-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fixes: #19946 Fixes: #19947 Co-authored-by: Craig Scott <craig.scott@crascit.com>
* | | | | Merge topic 'resolve-full-path-at-generate-time'Brad King2019-11-121-1/+1
|\ \ \ \ \ | | |_|_|/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | 48d1456b3d UnityBuild: Resolve full paths of unity source includes ec2f130aa9 cmFileAPI: Resolve full path in PCH source comparison Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !4029
| * | | | UnityBuild: Resolve full paths of unity source includesDaniel Eiband2019-11-111-1/+1
| | | | | | | | | | | | | | | | | | | | Issue: 19927
* | | | | Merge topic 'pch-no-duplicates'Craig Scott2019-11-121-0/+8
|\ \ \ \ \ | |_|_|/ / |/| | | / | | |_|/ | |/| | | | | | | | | | e01935ac9d PCH: No repeated path for internal generated PCH files Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !4030
| * | | PCH: No repeated path for internal generated PCH filesCristian Adam2019-11-111-0/+8
| | |/ | |/| | | | | | | Fixes: #19952
* | | Merge topic 'unity-include-generated'Brad King2019-11-071-1/+0
|\ \ \ | |/ / | | | | | | | | | | | | | | | | | | 7ddf462304 Unity build: Include GENERATED files into unity build Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: Julien Schueller <schueller@phimeca.com> Merge-request: !4001
| * | Unity build: Include GENERATED files into unity buildCristian Adam2019-11-061-1/+0
| |/ | | | | | | | | | | | | There is no reason to skip the generated files, in case of problems one can use the SKIP_UNITY_BUILD_INCLUSION property. Fixes: #19925
* | Merge topic 'objc-pch'Brad King2019-11-051-1/+1
|\ \ | |/ | | | | | | | | | | e331367a89 PCH: Add support for OBJC/OBJCXX languages Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !3983
| * PCH: Add support for OBJC/OBJCXX languagesCristian Adam2019-11-031-1/+1
| |
* | cmLocalGenerator: Drop unused initializer in AddUnityBuildBrad King2019-10-281-2/+1
|/ | | | | | | | | | Fix a warning from clang-scanbuild: warning: Value stored to 'chunk' during its initialization is never read for (size_t itemsLeft = filtered_sources.size(), chunk = batchSize, ^~~~~ ~~~~~~~~~ Simply remove the initializer.
* PCH: Generate sources during Compute stepCristian Adam2019-10-091-64/+15
|
* file(GENERATE): Create output file structures even earlierBrad King2019-10-071-5/+9
| | | | | | | | | | | | | | Since commit b80557c7bd (file(GENERATE): Evaluate early to allow generating source files, 2014-11-04, v3.2.0-rc1~398^2) we create the `cmSourceFile` instances marked with a `GENERATED` source file property before tracing source dependencies. Move it to even earlier so that steps in `cmGlobalGenerator::AddAutomaticSources` can operate on all sources. This also avoids the accidental `O(n^2)` calls for `n` local generators that we had previously. This is also needed since commit 83c1657ff7 (Unity build: Generate sources during Compute step, 2019-10-03) to support `file(GENERATE)` outputs as sources in a target with `UNITY_BUILD` enabled.
* Merge topic 'unity-step'Brad King2019-10-041-2/+7
|\ | | | | | | | | | | | | 83c1657ff7 Unity build: Generate sources during Compute step Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !3884
| * Unity build: Generate sources during Compute stepBrad King2019-10-031-2/+7
| | | | | | | | | | | | | | | | The unity build sources need to be added for all generators. Create them during `cmGlobalGenerator::Compute` to avoid duplicating the calls in every generator. We already handle Qt autogen there too. Issue: #19789
* | PCH: Add multi-language PCH generation supportCristian Adam2019-10-031-143/+158
|/ | | | | | | | | If the target has C files, it will get a C PCH file. The same for C++ files. The linker language is no longer used to determine which language to use for PCH. Fixes: #19790
* Revise include order using clang-format-6.0Kitware Robot2019-10-011-3/+4
| | | | | Run the `clang-format.bash` script to update our C and C++ code to a new include order `.clang-format`. Use `clang-format` version 6.0.
* Merge topic 'objective-c-cxx'Brad King2019-09-301-1/+11
|\ | | | | | | | | | | | | | | | | | | dd0f304613 Objective C/C++: Add compiler standard detection b515af782b Help: Add release note for Objective-C/C++ language support 9e66397c28 Languages: Add support for Objective-C++ 80f120a85f Languages: Add support for Objective-C Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !3811
| * Objective C/C++: Add compiler standard detectionCristian Adam2019-09-281-0/+10
| |
| * Languages: Add support for Objective-CSteve Wilson2019-09-281-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add entries in Modules and Modules/Platform to support Objective-C compiler determination and identification. Add Modules to check Objective-C compiler flags, source compilations, program checks, etc... Use OBJC as the designator of the language, eg: project(foo OBJC) Add various tests for Objective-C language features. Add tests to preserve C++ handling of .m and .mm files when OBJC is not a configured language. Co-Authored-By: Cristian Adam <cristian.adam@gmail.com>
* | cmMakefile: Move enumerations into new headerDaniel Eiband2019-09-261-1/+2
|/ | | | The enumerations will also be used in cmLocalGenerator.
* cmGeneratorExpression: Add cmGeneratorExpression::Evaluate utilityDaniel Eiband2019-09-231-9/+4
| | | | | | | cmGeneratorExpression::Evaluate is a shortcut when only the evaluated string is needed or an instance of cmCompiledGeneratorExpression cannot be cached. Fixes: #19686
* cmGeneratorExpression: Move quiet flag to cmCompiledGeneratorExpressionDaniel Eiband2019-09-221-2/+1
| | | | | | The quiet flag is false for all but one call to Evaluate. Make the quiet flag a setter of cmCompiledGeneratorExpression to be able to remove it from the Evaluate function signature.
* Merge topic 'cmake-system-headers'Brad King2019-09-201-1/+2
|\ | | | | | | | | | | | | | | 4a08690ccf cmstd: Extend header <cm/iterator> c688b401d3 cmstd: Modernize CMake system headers Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !3776
| * cmstd: Modernize CMake system headersMarc Chevrier2019-09-201-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Provide a standardized way to handle the C++ "standard" headers customized to be used with current CMake C++ standard constraints. Offer under directory `cm` headers which can be used as direct replacements of the standard ones. For example: #include <cm/string_view> can be used safely for CMake development in place of the `<string_view>` standard header. Fixes: #19491
* | Merge topic 'pch-source-list'Brad King2019-09-201-1/+10
|\ \ | | | | | | | | | | | | | | | | | | 9d2ac86f45 Precompile Headers: Add precompile header file to source list Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !3832
| * | Precompile Headers: Add precompile header file to source listCristian Adam2019-09-191-1/+10
| |/ | | | | | | | | | | | | The precompile header file will be added to the list of files, and be part of the newly "Precompile Header File" source group. Also make sure the sources have the header as dependency.
* | Merge topic 'fileapiLinkPathAndLinkDirBacktraces'Brad King2019-09-201-10/+26
|\ \ | |/ |/| | | | | | | | | | | | | | | | | | | | | | | 4d6334824d fileapi: add backtraces for LINK_PATH and LINK_DIRECTORIES 5bd65dff7a cmLocalGenerator: Add OutputLinkLibraries overload with backtraces 5d39e792ae cmGeneratorTarget: Store backtrace for target LINK_DIRECTORIES property 7da17ef797 cmLinkLineComputer: Add ComputeLinkLibraries overload with backtraces d4d0dd0f6a cmLinkLineComputer: Add ComputeLinkLibs overload with backtraces 0ac9dcb807 cmLinkLineComputer: Add ComputeLinkPath overload with backtraces 0c6468178a cmComputeLinkInformation: Add GetDirectoriesWithBacktraces a209b31d0d cmComputeLinkInformation: Add AppendValues with backtraces Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !3805
| * fileapi: add backtraces for LINK_PATH and LINK_DIRECTORIESJustin Goshi2019-09-181-6/+10
| |
| * cmLocalGenerator: Add OutputLinkLibraries overload with backtracesJustin Goshi2019-09-181-4/+16
| |
* | Precompile Headers: Add REUSE_FROM signatureCristian Adam2019-09-171-5/+108
| | | | | | | | | | | | | | Add the ability to share precompiled headers artifacts between targets. Fixes: #19659
* | clang-tidy: modernize-deprecated-headersRegina Pfeifer2019-09-161-3/+3
| |
* | Merge topic 'modernize-use-auto'Brad King2019-09-121-10/+5
|\ \ | |/ |/| | | | | | | | | d25a5a7ec9 clang-tidy: modernize-use-auto Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !3783
| * clang-tidy: modernize-use-autoRegina Pfeifer2019-09-101-10/+5
| | | | | | | | | | | | Set the MinTypeNameLength option to an impossibly high value in order to limit the diagnostics to iterators. Leave new expressions and cast expressions for later.
* | Merge topic 'fileapiAddMoreBacktraces'Brad King2019-09-111-64/+196
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 30006e199b fileapi: add backtraces for compile/link options 291c83f063 cmLocalGenerator: Add GetTargetCompileFlags overload with backtraces 8e973b8e8d cmLocalGenerator: Add GetTargetFlags overload with backtraces 4d5bbb7704 cmLocalGenerator: Add GetStaticLibraryFlags overload with backtraces 1f6a436bf4 cmLocalGenerator: Add AddCompileOptions overload with backtraces 5355a60fd0 cmLocalGenerator: Add AppendCompileOptions overload with backtraces a20d2c85d0 cmLocalGenerator: Add AppendFlags overload with backtraces b13207910e cmLocalGenerator: Clarify AddCompileOptions filter logic ... Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !3775
| * | cmLocalGenerator: Add GetTargetCompileFlags overload with backtracesJustin Goshi2019-09-101-2/+14
| | |
| * | cmLocalGenerator: Add GetTargetFlags overload with backtracesJustin Goshi2019-09-101-9/+30
| | |
| * | cmLocalGenerator: Add GetStaticLibraryFlags overload with backtracesJustin Goshi2019-09-101-4/+23
| | |
| * | cmLocalGenerator: Add AddCompileOptions overload with backtracesJustin Goshi2019-09-101-8/+35
| | |
| * | cmLocalGenerator: Add AppendCompileOptions overload with backtracesJustin Goshi2019-09-101-0/+24
| | |