Procházet zdrojové kódy

ENH: Special value IGNORE behaves like NOTFOUND, but makes FindLibrary, etc,
_not_ search for a library, etc.

Amitha Perera před 24 roky
rodič
revize
582fe4b51f
2 změnil soubory, kde provedl 2 přidání a 2 odebrání
  1. 1 1
      Source/cmSystemTools.cxx
  2. 1 1
      Source/cmSystemTools.h

+ 1 - 1
Source/cmSystemTools.cxx

@@ -819,7 +819,7 @@ bool cmSystemTools::IsOff(const char* val)
     *c = toupper(*c);
     }
   return (v == "OFF" || v == "0" || v == "NO" || v == "FALSE" || 
-	  v == "N" || v == "NOTFOUND");
+	  v == "N" || v == "NOTFOUND" || v == "IGNORE");
 }
 
 

+ 1 - 1
Source/cmSystemTools.h

@@ -196,7 +196,7 @@ public:
    * not the same as !IsOn(...) because there are a number of
    * ambiguous values such as "/usr/local/bin" a path will result in
    * IsON and IsOff both returning false. Note that the special path
-   * NOTFOUND will cause IsOff to return true. 
+   * NOTFOUND or IGNORE will cause IsOff to return true. 
    */
   static bool IsOff(const char* val);