Selaa lähdekoodia

BUG: fix for bug 6039 LIB and INCLUDE not used for find stuff

Bill Hoffman 18 vuotta sitten
vanhempi
sitoutus
779877a2ee
2 muutettua tiedostoa jossa 2 lisäystä ja 0 poistoa
  1. 1 0
      Source/cmFindLibraryCommand.cxx
  2. 1 0
      Source/cmFindPathCommand.cxx

+ 1 - 0
Source/cmFindLibraryCommand.cxx

@@ -38,6 +38,7 @@ cmFindLibraryCommand::cmFindLibraryCommand()
                                "CMAKE_FIND_ROOT_PATH_MODE_XXX", 
                                "CMAKE_FIND_ROOT_PATH_MODE_LIBRARY");
 
+  this->EnvironmentPath = "LIB";
   this->GenericDocumentation += 
     "\n"
     "If the library found is a framework, then VAR will be set to "

+ 1 - 0
Source/cmFindPathCommand.cxx

@@ -21,6 +21,7 @@
 
 cmFindPathCommand::cmFindPathCommand()
 {
+  this->EnvironmentPath = "INCLUDE";
   this->IncludeFileInPath = false;
   cmSystemTools::ReplaceString(this->GenericDocumentation,
                                "FIND_XXX", "find_path");