summaryrefslogtreecommitdiffstats
path: root/Source/cmMakefile.h
Commit message (Collapse)AuthorAgeFilesLines
* Make message suppression more consistent.Michael Scott2015-11-301-1/+2
| | | | | | | | | | | | | | | | Make the message suppression more consistent, by adding a check for the message related CMake variables in cmake::IssueMessage, which allows callers of IssueMessage other than the message command to behave as expected. Also added a check for CMAKE_SUPPRESS_DEVELOPER_WARNINGS in the message command to mirror the deprecated message type behaviour. Added a 'force' flag to the cmake::IssueMessage method, to make the message suppression consistent, when setting the message related CMake variables directly in a CMake file. Expand message command tests to cover the AUTHOR_WARNING message type as well.
* Merge branch 'reduce-cmState-accumulation' into ↵Brad King2015-11-251-6/+2
|\ | | | | | | reduce-cmState-accumulation-for-master
| * cmMakefile: Remove unused PolicyPushPop interfacesBrad King2015-11-251-5/+1
| | | | | | | | | | | | The PolicyPushPop constructor arguments and Quiet method were used to pass non-default arguments to PushPolicy and PopSnapshot, but no clients use them anymore.
| * cmMakefile: Clarify purpose of method that pops a scope snapshotBrad King2015-11-251-1/+1
| | | | | | | | | | | | | | The `PopPolicyBarrier` method is actually responsible for closing any scope opened by creating a snapshot. Rename it to `PopSnapshot` and add a comment explaining the purpose of the poilcy-scope-specific part of the method.
* | cmMakefile: Add imported target accessorStephen Kelly2015-10-271-0/+1
| |
* | cmLocalGenerator: Port FindGeneratorTarget away from GetGeneratorTargetStephen Kelly2015-10-271-0/+5
| |
* | cmTarget: Implement ALIAS in terms of name mappingStephen Kelly2015-10-271-2/+2
| | | | | | | | Remove mapping to cmTarget.
* | cmake: Store hardcoded lists of sources and headersStephen Kelly2015-10-271-13/+0
| | | | | | | | Don't duplicate this in each cmMakefile.
* | Merge topic 'inline-cmMakeDepend-content'Brad King2015-10-211-4/+0
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | c0969b10 cmMakeDepend: Inline into inheriting class. 6a1e7328 cmMakeDepend: Inline into only user. 00f50b00 cmMakeDepend: Inline into header. 3df749af Remove vestigial declarations. 3029c27e cmMakeDepend: Use public cmMakefile API.
| * | Remove vestigial declarations.Stephen Kelly2015-10-201-4/+0
| | |
* | | Merge topic 'fix-CMP0054-elseif-warning'Brad King2015-10-211-1/+1
|\ \ \ | |/ / |/| / | |/ | | d6a03b47 cmIfCommand: Issue CMP0054 warning with appropriate context. (#15802)
| * cmIfCommand: Issue CMP0054 warning with appropriate context. (#15802)Stephen Kelly2015-10-201-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Commit v3.4.0-rc1~494^2~4 (cmMakefile: Add API for elseif to create backtrace., 2015-05-29) removed the use of cmMakefileCall to push/pop execution context in favor of a new way to create backtraces. However, a call to cmMakefile::GetExecutionContext is still invoked to issue a contextual CMP0054 warning through cmConditionEvaluator. As the elseif is not part of the call stack, this resulted in trying to access an empty vector. Avoid the attempt at getting execution context when evaluating elseif by constructing a context and backtrace on behalf of the cmConditionEvaluator in all cases.
* | cmState: Move TargetType enum from cmTarget.Stephen Kelly2015-10-141-3/+3
| | | | | | | | | | | | | | Mostly automated: values=( "EXECUTABLE" "STATIC_LIBRARY" "SHARED_LIBRARY" "MODULE_LIBRARY" "OBJECT_LIBRARY" "UTILITY" "GLOBAL_TARGET" "INTERFACE_LIBRARY" "UNKNOWN_LIBRARY" "TargetType") for i in "${values[@]}"; do git grep -l cmTarget::$i | xargs sed -i "s|cmTarget::$i|cmState::$i|g"; done
* | cmTarget: Move link type enum out.Stephen Kelly2015-10-141-2/+2
| | | | | | | | Remove a reason for generate time code to depend on the cmTarget header/type.
* | Merge topic 'genex-generator-objects'Brad King2015-10-141-14/+7
|\ \ | | | | | | | | | | | | | | | | | | | | | 2293d43d cmLocalGenerator: Store cmGeneratorTargets. 488723f5 cmMakefile: Store container of cmExportBuildFileGenerators. 15834405 cmGeneratorExpression: Port interface to cmGeneratorTarget. 11165525 cmGeneratorExpression: Port to cmLocalGenerator.
| * | cmLocalGenerator: Store cmGeneratorTargets.Stephen Kelly2015-10-141-14/+0
| | | | | | | | | | | | Relieve cmMakefile of this responsibility.
| * | cmMakefile: Store container of cmExportBuildFileGenerators.Stephen Kelly2015-10-141-0/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | Set a cmLocalGenerator on each instance at compute time. That will soon be needed to access cmGeneratorTarget instances. If a cmExportBuildFileGenerator is processed early during configure time as a result of CMP0024 it must be removed from the list to process later at generate time.
* | | cmState: Initialize default definitions immediately.Stephen Kelly2015-10-131-1/+0
|/ / | | | | | | Don't leave this as cmMakefile responsibility.
* | cmMakefile: Remove unused GetProjectName calls.Stephen Kelly2015-10-081-5/+0
| |
* | Remove now-unused directory setters.Stephen Kelly2015-10-071-2/+0
|/
* cmMakefile: Remove Configured state.Stephen Kelly2015-09-271-4/+0
| | | | It is vestigial.
* cmMakefile: Remove cmLocalGenerator member.Stephen Kelly2015-08-281-3/+3
|
* Merge topic 'minor-cleanups'Brad King2015-08-271-2/+1
|\ | | | | | | | | | | | | | | | | | | | | 7f551b4f cmGlobalGenerator: Implement VS6 check without virtual method. cd6293cd cmMakefile: Fix style. de6b2895 cmTarget: Remove vestigal method declaration. e35ee02d cmTarget: Fix indentation. 00f2298f Reduce uses of cmMakefile::GetGlobalGenerator. 6254ba95 cmMakefile: Remove Internal class. cf0a78dc cmGeneratorTarget: Issue messages through the local generator.
| * cmMakefile: Remove Internal class.Stephen Kelly2015-08-251-2/+1
| | | | | | | | Move only remaining state to the direct class.
* | cmState: Move ProjectName from cmMakefile.Stephen Kelly2015-08-251-2/+0
| |
* | cmMakefile: Use std::string in ProjectName API.Stephen Kelly2015-08-251-2/+2
| |
* | cmMakefile: Out-of-line GetProjectName.Stephen Kelly2015-08-251-4/+1
|/
* cmState: Move directory Properties from cmMakefile.Stephen Kelly2015-08-241-3/+0
|
* Fix iOS Bundle layouts (#15669)Gregor Jasny2015-08-241-0/+3
| | | | | | | | | | In contrast to Mac OS X App bundle layout the iOS one lacks the Contents/MacOSX structure. See also the Bundle Structures documentation in Mac Developer Library: https://developer.apple.com/library/mac/documentation/CoreFoundation/Conceptual/CFBundles/BundleTypes/BundleTypes.html For now detect iOS targets by checking the SDK name/path.
* cmMakefile: Remove unused method.Stephen Kelly2015-08-061-4/+0
|
* Merge topic 'cmState-policies'Brad King2015-08-061-13/+0
|\ | | | | | | | | | | | | | | | | | | | | | | | | 757a1f54 cmState: Move PolicyState from cmMakefile. 52dbe654 cmState: Record the end position of each directory. 65a5e0c6 cmLinkedTree: Add Clear API. 34835433 cmState: Add Type for policy scope. af0de01c cmState: Remove call stack parent tracking. 6ae8b30b cmMakefile: Move policy barriers inside cmState scopes. a5fc17b5 cmMakefile: Re-order policy entries and barriers. 0a01e6c6 cmState: Add Snapshot Type accessor. f0005bb4 Tests: Verify generate-time policy scope behavior.
| * cmState: Move PolicyState from cmMakefile.Stephen Kelly2015-08-021-13/+0
| | | | | | | | | | Implement lexical scope checking in terms of the state stack instead of barriers.
* | cmMakefile: Store EvaluationFiles.Stephen Kelly2015-08-011-0/+9
|/ | | | | Relieve the cmGlobalGenerator of this responsibility. Evaluate the generator expressions in the context of the cmLocalGenerator.
* cmMakefile: Move method out of line.Stephen Kelly2015-07-291-4/+1
|
* cmMakefile: Return target from all AddUtilityCommand signaturesBrad King2015-07-291-8/+9
|
* Merge topic 'use-generator-target'Brad King2015-07-281-0/+4
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 57f03e59 Port some of the cmExportFileGenerator API to cmGeneratorTarget. 57ab0f70 Port cmExportBuildFileGenerator to cmGeneratorTarget. 570938cb cmExportTryCompileFileGenerator: Create cmGeneratorTargets. ec38e4c8 Move GetFullPath to cmGeneratorTarget dfb025bf Move GetLocationForBuild to cmGeneratorTarget. 9f2dca80 Move GetLocation to cmGeneratorTarget. c7a8e74b Always access target location from a cmGeneratorTarget instance. 5b60eaf6 cmTarget: Restore the ImportedGetLocation method. 50b17a61 cmIncludeCommand: Populate the cmGeneratorTargets in deprecated path. ba266858 cmTarget: Create cmGeneratorTargets before reading deprecated LOCATION. 5ab3a946 cmTarget: Inline GetLocation into deprecated callers. 496f4cd0 cmGlobalGenerator: Create cmGeneratorTargets before QtAutomoc. de80993a cmGlobalGenerator: Create cmGeneratorTargets earlier. 611220f7 cmTarget: Use reliable test for CMP0024 and CMP0026 OLD. bbad6ba5 cmLocalGenerator: Remove unused AddCustomCommandToCreateObject method. e4dc83ad cmLocalGenerator: Remove unused AddBuildTargetRule method. ...
| * cmGlobalGenerator: Create cmGeneratorTargets before QtAutomoc.Stephen Kelly2015-07-271-0/+4
| | | | | | | | Add cmGeneratorTargets as needed in the QtAutomoc processing.
* | Merge topic 'policy-refactor'Brad King2015-07-271-2/+0
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 8329fc01 cmPolicies: Replace unused include. 5447ca1a cmMakefile: Remove CMP0001 handling to callers. d0dcce15 cmMakefile: Simplify computation of ancient policy status. 658bfc5c cmMakefile: Remove redundant condition from policy status computation. f4a25874 cmMakefile: Inline internal policy status method. 3c45471c cmPolicies: Enable RVO for internal method. 71e69fc9 cmPolicies: Store only state that users can set. 84e18056 cmMakefile: Convert recursion to loop.
| * | cmMakefile: Inline internal policy status method.Stephen Kelly2015-07-251-2/+0
| |/
* | cmState: Host buildsystem properties for directories.Stephen Kelly2015-07-251-7/+0
| |
* | cmMakefile: Use Ranges for buildsystem property access.Stephen Kelly2015-07-221-6/+7
| | | | | | | | Don't return vector copies.
* | cmMakefile: Split accessors for include directories and origins.Stephen Kelly2015-07-221-1/+2
| |
* | cmMakefile: Split accessors for compile options and origins.Stephen Kelly2015-07-221-1/+2
| |
* | cmMakefile: Split accessors for compile definitions and origins.Stephen Kelly2015-07-221-1/+2
| |
* | cmMakefile: Separate storage of buildsystem properties and their origins.Stephen Kelly2015-07-221-3/+6
| | | | | | | | This simplifies some existing and upcoming algorithms.
* | cmMakefile: Out of line some API.Stephen Kelly2015-07-221-12/+3
| |
* | cmMakefile: Remove some references from APIs.Stephen Kelly2015-07-221-3/+3
|/
* Merge topic 'remove-special-MACROS-handling'Brad King2015-07-211-13/+0
|\ | | | | | | | | 41bb831f cmMakefile: Remove special handling of MACROS property.
| * cmMakefile: Remove special handling of MACROS property.Stephen Kelly2015-07-191-13/+0
| |
* | Merge topic 'remove-special-LINK_DIRECTORIES-handling'Brad King2015-07-211-14/+0
|\ \ | |/ | | | | | | | | 881613c4 cmMakefile: Remove special handling of LINK_DIRECTORIES property. 35734260 cmMakefile: Inline only use of GetLinkDirectories.