[cmake-commits] martink committed cmAddCustomTargetCommand.cxx 1.31
1.32 cmMakefile.cxx 1.439 1.440
cmake-commits at cmake.org
cmake-commits at cmake.org
Sat Mar 1 15:44:19 EST 2008
Update of /cvsroot/CMake/CMake/Source
In directory public:/mounts/ram/cvs-serv5610
Modified Files:
cmAddCustomTargetCommand.cxx cmMakefile.cxx
Log Message:
COMP: fix some warnings
Index: cmAddCustomTargetCommand.cxx
===================================================================
RCS file: /cvsroot/CMake/CMake/Source/cmAddCustomTargetCommand.cxx,v
retrieving revision 1.31
retrieving revision 1.32
diff -u -d -r1.31 -r1.32
--- cmAddCustomTargetCommand.cxx 1 Mar 2008 20:20:35 -0000 1.31
+++ cmAddCustomTargetCommand.cxx 1 Mar 2008 20:44:17 -0000 1.32
@@ -48,6 +48,7 @@
return false;
break;
case cmPolicies::REQUIRED_IF_USED:
+ case cmPolicies::REQUIRED_ALWAYS:
this->SetError(
this->Makefile->GetPolicies()->GetRequiredPolicyError
(cmPolicies::CMP_0001).c_str());
Index: cmMakefile.cxx
===================================================================
RCS file: /cvsroot/CMake/CMake/Source/cmMakefile.cxx,v
retrieving revision 1.439
retrieving revision 1.440
diff -u -d -r1.439 -r1.440
--- cmMakefile.cxx 1 Mar 2008 20:20:35 -0000 1.439
+++ cmMakefile.cxx 1 Mar 2008 20:44:17 -0000 1.440
@@ -3149,6 +3149,7 @@
case cmPolicies::OLD:
return true;
case cmPolicies::REQUIRED_IF_USED:
+ case cmPolicies::REQUIRED_ALWAYS:
msg = this->GetPolicies()->
GetRequiredPolicyError(cmPolicies::CMP_0002);
return false;
@@ -3235,7 +3236,7 @@
cmPolicies::PolicyStatus cmMakefile
::GetPolicyStatus(cmPolicies::PolicyID id)
{
- cmPolicies::PolicyStatus status;
+ cmPolicies::PolicyStatus status = cmPolicies::REQUIRED_IF_USED;
PolicyMap::iterator mappos;
unsigned int vecpos;
bool done = false;
More information about the Cmake-commits
mailing list