Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Brad King
CMake
Commits
4c4bafde
Commit
4c4bafde
authored
Sep 12, 2013
by
Brad King
Committed by
Kitware Robot
Sep 12, 2013
Browse files
Merge topic 'print-CMP0022-content-conflict'
81d2793e
Add differing target property content to policy CMP0022 warning
parents
11b50743
81d2793e
Changes
3
Hide whitespace changes
Inline
Side-by-side
Source/cmTarget.cxx
View file @
4c4bafde
...
...
@@ -6443,7 +6443,13 @@ bool cmTarget::ComputeLinkInterface(const char* config, LinkInterface& iface,
->
GetPolicyWarning
(
cmPolicies
::
CMP0022
))
<<
"
\n
"
<<
"Target
\"
"
<<
this
->
GetName
()
<<
"
\"
has a "
"INTERFACE_LINK_LIBRARIES property which differs from its "
<<
linkIfaceProp
<<
" properties."
;
<<
linkIfaceProp
<<
" properties."
"
\n
"
"INTERFACE_LINK_LIBRARIES:
\n
"
<<
newExplicitLibraries
<<
"
\n
"
<<
linkIfaceProp
<<
":
\n
"
<<
explicitLibraries
<<
"
\n
"
;
this
->
Makefile
->
IssueMessage
(
cmake
::
AUTHOR_WARNING
,
w
.
str
());
}
// Fall through
...
...
Tests/RunCMake/CMP0022/CMP0022-WARN-stderr.txt
View file @
4c4bafde
...
...
@@ -5,4 +5,13 @@ CMake Warning \(dev\) in CMakeLists.txt:
Target "bar" has a INTERFACE_LINK_LIBRARIES property which differs from its
LINK_INTERFACE_LIBRARIES properties.
INTERFACE_LINK_LIBRARIES:
foo
LINK_INTERFACE_LIBRARIES:
bat
This warning is for project developers. Use -Wno-dev to suppress it.$
Tests/RunCMake/CMP0022/CMP0022-WARN-tll-stderr.txt
View file @
4c4bafde
...
...
@@ -5,4 +5,13 @@ CMake Warning \(dev\) in CMakeLists.txt:
Target "bar" has a INTERFACE_LINK_LIBRARIES property which differs from its
LINK_INTERFACE_LIBRARIES properties.
INTERFACE_LINK_LIBRARIES:
foo
LINK_INTERFACE_LIBRARIES:
bat
This warning is for project developers. Use -Wno-dev to suppress it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment