summaryrefslogtreecommitdiffstats
path: root/Source/cmFindPackageCommand.cxx
diff options
context:
space:
mode:
authorAndy Cedilnik <andy.cedilnik@kitware.com>2004-10-27 14:47:14 (GMT)
committerAndy Cedilnik <andy.cedilnik@kitware.com>2004-10-27 14:47:14 (GMT)
commit56234aed4bfc87b691897056c4535b4d8cb3098f (patch)
treedffd371693861754131167309983b1ae2109ebf0 /Source/cmFindPackageCommand.cxx
parent21c818340e783a0702071d279351081d01c88e18 (diff)
downloadCMake-56234aed4bfc87b691897056c4535b4d8cb3098f.zip
CMake-56234aed4bfc87b691897056c4535b4d8cb3098f.tar.gz
CMake-56234aed4bfc87b691897056c4535b4d8cb3098f.tar.bz2
PERF: Remove several classes from the bootstrap and so making bootstrap smaller and faster
Diffstat (limited to 'Source/cmFindPackageCommand.cxx')
-rw-r--r--Source/cmFindPackageCommand.cxx9
1 files changed, 9 insertions, 0 deletions
diff --git a/Source/cmFindPackageCommand.cxx b/Source/cmFindPackageCommand.cxx
index 7026bc9..9c2aa33 100644
--- a/Source/cmFindPackageCommand.cxx
+++ b/Source/cmFindPackageCommand.cxx
@@ -17,11 +17,14 @@
#include "cmFindPackageCommand.h"
#include <cmsys/RegularExpression.hxx>
+#ifdef CMAKE_BUILD_WITH_CMAKE
#include "cmVariableWatch.h"
+#endif
void cmFindPackageNeedBackwardsCompatibility(const std::string& variable,
int access_type, void* )
{
+#ifdef CMAKE_BUILD_WITH_CMAKE
if(access_type == cmVariableWatch::UNKNOWN_VARIABLE_READ_ACCESS)
{
std::string message = "An attempt was made to access a variable: ";
@@ -36,6 +39,10 @@ void cmFindPackageNeedBackwardsCompatibility(const std::string& variable,
"the case of the argument to FIND_PACKAGE.";
cmSystemTools::Error(message.c_str());
}
+#else
+ (void)variable;
+ (void)access_type;
+#endif
}
//----------------------------------------------------------------------------
@@ -196,6 +203,7 @@ bool cmFindPackageCommand::InitialPass(std::vector<std::string> const& args)
m_Makefile->GetDefinition(foundVar.c_str()));
}
+#ifdef CMAKE_BUILD_WITH_CMAKE
if(!(upperDir == this->Variable))
{
if(needCompatibility)
@@ -225,6 +233,7 @@ bool cmFindPackageCommand::InitialPass(std::vector<std::string> const& args)
);
}
}
+#endif
return result;
}