[Cmake-commits] [cmake-commits] king committed cmFindPackageCommand.cxx 1.45 1.46

cmake-commits at cmake.org cmake-commits at cmake.org
Fri Oct 3 10:39:55 EDT 2008


Update of /cvsroot/CMake/CMake/Source
In directory public:/mounts/ram/cvs-serv15151/Source

Modified Files:
	cmFindPackageCommand.cxx 
Log Message:
ENH: Warn and ignore EXACT without version

If the find_package command is invoked with the EXACT option but without
a version, warn and ignore the option.


Index: cmFindPackageCommand.cxx
===================================================================
RCS file: /cvsroot/CMake/CMake/Source/cmFindPackageCommand.cxx,v
retrieving revision 1.45
retrieving revision 1.46
diff -C 2 -d -r1.45 -r1.46
*** cmFindPackageCommand.cxx	10 Sep 2008 14:11:47 -0000	1.45
--- cmFindPackageCommand.cxx	3 Oct 2008 14:39:53 -0000	1.46
***************
*** 469,472 ****
--- 469,480 ----
      }
  
+   // Ignore EXACT with no version.
+   if(this->Version.empty() && this->VersionExact)
+     {
+     this->VersionExact = false;
+     this->Makefile->IssueMessage(
+       cmake::AUTHOR_WARNING, "Ignoring EXACT since no version is requested.");
+     }
+ 
    if(!this->Version.empty())
      {



More information about the Cmake-commits mailing list