diff options
author | Brad King <brad.king@kitware.com> | 2009-07-06 20:24:45 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2009-07-06 20:24:45 (GMT) |
commit | 26df00f83a73821e39e20624d3ca7f66fdd4db97 (patch) | |
tree | b5d2787918079731daa55e3793aa12ed057d3765 /Source/cmTarget.h | |
parent | 82a8c6b0c725496315e45e11ce8bcfb970c82bcf (diff) | |
download | CMake-26df00f83a73821e39e20624d3ca7f66fdd4db97.zip CMake-26df00f83a73821e39e20624d3ca7f66fdd4db97.tar.gz CMake-26df00f83a73821e39e20624d3ca7f66fdd4db97.tar.bz2 |
ENH: Move CMP0004 check into cmTarget
This moves code implementing policy CMP0004 into cmTarget::CheckCMP0004.
The implementation is slightly simpler and can be re-used outside of
cmComputeLinkDepends.
Diffstat (limited to 'Source/cmTarget.h')
-rw-r--r-- | Source/cmTarget.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Source/cmTarget.h b/Source/cmTarget.h index 9e17d60..83fd0b1 100644 --- a/Source/cmTarget.h +++ b/Source/cmTarget.h @@ -260,6 +260,10 @@ public: such dependencies or for static libraries. */ cmTargetLinkInterface const* GetLinkInterface(const char* config); + /** Strip off leading and trailing whitespace from an item named in + the link dependencies of this target. */ + std::string CheckCMP0004(std::string const& item); + /** Get the directory in which this target will be built. If the configuration name is given then the generator will add its subdirectory for that configuration. Otherwise just the canonical |