summaryrefslogtreecommitdiff
path: root/Source/cmPolicies.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2008-03-20 21:11:26 -0400
committerBrad King <brad.king@kitware.com>2008-03-20 21:11:26 -0400
commita86e8fa69faab542cccf530754b7a23a47213e4a (patch)
treeb263126320be2a4ab580d6acdb741b7f666094d0 /Source/cmPolicies.cxx
parenta6a673979dded1cc97a76c193e29bab64b00480e (diff)
downloadcmake-a86e8fa69faab542cccf530754b7a23a47213e4a.tar.gz
ENH: Yet another attempt at warning for CMP0003.
- Give example code to avoid the warning - Make explanation more consise - Explicitly state this is for compatibility - Issue the warning for at most one target
Diffstat (limited to 'Source/cmPolicies.cxx')
-rw-r--r--Source/cmPolicies.cxx5
1 files changed, 4 insertions, 1 deletions
diff --git a/Source/cmPolicies.cxx b/Source/cmPolicies.cxx
index 353d60295b..074bd7a30c 100644
--- a/Source/cmPolicies.cxx
+++ b/Source/cmPolicies.cxx
@@ -201,7 +201,10 @@ cmPolicies::cmPolicies()
" add_executable(myexe myexe.c)\n"
" target_link_libraries(myexe /path/to/libA.so /path/to/libB.so)\n"
"When all items on the link line have known paths CMake does not check "
- "this policy so it has no effect.",
+ "this policy so it has no effect.\n"
+ "Note that the warning for this policy will be issued for at most "
+ "one target. This avoids flooding users with messages for every "
+ "target when setting the policy once will probably fix all targets.",
2,6,0, cmPolicies::WARN);
this->DefinePolicy(