Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
CMake
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
André Pedro
CMake
Commits
65a0bfd8
Commit
65a0bfd8
authored
8 years ago
by
Daniele E. Domenichelli
Browse files
Options
Downloads
Patches
Plain Diff
FeatureSummary: Add deprecation warnings to deprecated commands
parent
4da3cae9
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Modules/FeatureSummary.cmake
+6
-0
6 additions, 0 deletions
Modules/FeatureSummary.cmake
with
6 additions
and
0 deletions
Modules/FeatureSummary.cmake
+
6
−
0
View file @
65a0bfd8
...
...
@@ -514,6 +514,7 @@ CMake versions:
can be set are added automatically by the ``find_package()`` command.
#]=======================================================================]
function
(
SET_PACKAGE_INFO _name _desc
)
message
(
DEPRECATION
"SET_PACKAGE_INFO is deprecated. Use SET_PACKAGE_PROPERTIES instead."
)
unset
(
_url
)
unset
(
_purpose
)
if
(
ARGC GREATER 2
)
...
...
@@ -543,6 +544,7 @@ endfunction()
set_package_info(<name> <description> <url>)
#]=======================================================================]
function
(
SET_FEATURE_INFO
)
message
(
DEPRECATION
"SET_FEATURE_INFO is deprecated. Use ADD_FEATURE_INFO instead."
)
SET_PACKAGE_INFO
(
${
ARGN
}
)
endfunction
()
...
...
@@ -560,6 +562,8 @@ endfunction()
feature_summary(WHAT ENABLED_FEATURES DESCRIPTION "Enabled features:")
#]=======================================================================]
function
(
PRINT_ENABLED_FEATURES
)
message
(
DEPRECATION
"PRINT_ENABLED_FEATURES is deprecated. Use
feature_summary(WHAT ENABLED_FEATURES DESCRIPTION
\"
Enabled features:
\"
)"
)
FEATURE_SUMMARY
(
WHAT ENABLED_FEATURES DESCRIPTION
"Enabled features:"
)
endfunction
()
...
...
@@ -577,5 +581,7 @@ endfunction()
feature_summary(WHAT DISABLED_FEATURES DESCRIPTION "Disabled features:")
#]=======================================================================]
function
(
PRINT_DISABLED_FEATURES
)
message
(
DEPRECATION
"PRINT_DISABLED_FEATURES is deprecated. Use
feature_summary(WHAT DISABLED_FEATURES DESCRIPTION
\"
Disabled features:
\"
)"
)
FEATURE_SUMMARY
(
WHAT DISABLED_FEATURES DESCRIPTION
"Disabled features:"
)
endfunction
()
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment