From 9deca5887dc8f8a162b965d042b9afd9c7c1e4dd Mon Sep 17 00:00:00 2001 From: Alexander Neundorf Date: Wed, 8 Aug 2007 13:05:27 -0400 Subject: [PATCH] ENH: remove the watch for the upper case variable name, it breaks the feature summary, which needs to check for both the upper case and original case _FOUND variables Alex --- Source/cmFindPackageCommand.cxx | 8 -------- Tests/FindPackageTest/CMakeLists.txt | 2 +- 2 files changed, 1 insertion(+), 9 deletions(-) diff --git a/Source/cmFindPackageCommand.cxx b/Source/cmFindPackageCommand.cxx index 364b64c6e..de177e810 100644 --- a/Source/cmFindPackageCommand.cxx +++ b/Source/cmFindPackageCommand.cxx @@ -254,10 +254,6 @@ bool cmFindPackageCommand::InitialPass(std::vector const& args) upperDir.c_str(), cmFindPackageNeedBackwardsCompatibility ); - this->Makefile->GetVariableWatch()->RemoveWatch( - upperFound.c_str(), - cmFindPackageNeedBackwardsCompatibility - ); } else { @@ -267,10 +263,6 @@ bool cmFindPackageCommand::InitialPass(std::vector const& args) upperDir.c_str(), cmFindPackageNeedBackwardsCompatibility ); - this->Makefile->GetVariableWatch()->AddWatch( - upperFound.c_str(), - cmFindPackageNeedBackwardsCompatibility - ); } } #endif diff --git a/Tests/FindPackageTest/CMakeLists.txt b/Tests/FindPackageTest/CMakeLists.txt index 637e0e983..6f1a7e5fc 100644 --- a/Tests/FindPackageTest/CMakeLists.txt +++ b/Tests/FindPackageTest/CMakeLists.txt @@ -4,7 +4,7 @@ PROJECT(FindPackageTest) FIND_PACKAGE(OpenGL QUIET) # Look for a package that has no find module and will not be found. -#FIND_PACKAGE(NotAPackage QUIET) +FIND_PACKAGE(NotAPackage QUIET) # Look for a package that has an advanced find module. FIND_PACKAGE(VTK QUIET)