diff options
author | Brad King <brad.king@kitware.com> | 2008-07-23 16:59:14 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2008-07-23 16:59:14 (GMT) |
commit | b93f0318fe1ad55aec7a49227affca5a215ce915 (patch) | |
tree | 6d58b84574134cea5855d6f174f0896dda66c5f4 /Source/cmTarget.cxx | |
parent | 74d653602413297e00d5507f3839da0acbfd0030 (diff) | |
download | CMake-b93f0318fe1ad55aec7a49227affca5a215ce915.zip CMake-b93f0318fe1ad55aec7a49227affca5a215ce915.tar.gz CMake-b93f0318fe1ad55aec7a49227affca5a215ce915.tar.bz2 |
ENH: Support full-path libs w/out valid names.
This change introduces policy CMP0008 to decide how to treat full path
libraries that do not appear to be valid library file names. Such
libraries worked by accident in the VS IDE and Xcode generators with
CMake 2.4 and below. We support them in CMake 2.6 by introducing this
policy. See policy documentation added by this change for details.
Diffstat (limited to 'Source/cmTarget.cxx')
-rw-r--r-- | Source/cmTarget.cxx | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Source/cmTarget.cxx b/Source/cmTarget.cxx index 6e81a1a..7d49a0a 100644 --- a/Source/cmTarget.cxx +++ b/Source/cmTarget.cxx @@ -55,6 +55,7 @@ cmTarget::cmTarget() this->Makefile = 0; this->PolicyStatusCMP0003 = cmPolicies::WARN; this->PolicyStatusCMP0004 = cmPolicies::WARN; + this->PolicyStatusCMP0008 = cmPolicies::WARN; this->LinkLibrariesAnalyzed = false; this->HaveInstallRule = false; this->DLLPlatform = false; @@ -768,6 +769,8 @@ void cmTarget::SetMakefile(cmMakefile* mf) this->Makefile->GetPolicyStatus(cmPolicies::CMP0003); this->PolicyStatusCMP0004 = this->Makefile->GetPolicyStatus(cmPolicies::CMP0004); + this->PolicyStatusCMP0008 = + this->Makefile->GetPolicyStatus(cmPolicies::CMP0008); } //---------------------------------------------------------------------------- |