[cmake-commits] king committed cmFindLibraryCommand.cxx 1.40 1.41 cmake.cxx 1.304 1.305

cmake-commits at cmake.org cmake-commits at cmake.org
Wed Jun 27 12:07:37 EDT 2007


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

Modified Files:
	cmFindLibraryCommand.cxx cmake.cxx 
Log Message:
ENH: Added global property FIND_LIBRARY_USE_LIB64_PATHS to allow lib64 paths to be searched optionally.  Turn off the feature on debian systems.  This addresses debian report 419007.


Index: cmFindLibraryCommand.cxx
===================================================================
RCS file: /cvsroot/CMake/CMake/Source/cmFindLibraryCommand.cxx,v
retrieving revision 1.40
retrieving revision 1.41
diff -u -d -r1.40 -r1.41
--- cmFindLibraryCommand.cxx	8 Jun 2007 15:57:16 -0000	1.40
+++ cmFindLibraryCommand.cxx	27 Jun 2007 16:07:34 -0000	1.41
@@ -67,8 +67,14 @@
       }
     return true;
     }
-  // add special 64 bit paths if this is a 64 bit compile.
-  this->AddLib64Paths();
+
+  if(this->Makefile->GetCMakeInstance()
+     ->GetPropertyAsBool("FIND_LIBRARY_USE_LIB64_PATHS"))
+    {
+    // add special 64 bit paths if this is a 64 bit compile.
+    this->AddLib64Paths();
+    }
+
   std::string library;
   for(std::vector<std::string>::iterator i = this->Names.begin();
       i != this->Names.end() ; ++i)

Index: cmake.cxx
===================================================================
RCS file: /cvsroot/CMake/CMake/Source/cmake.cxx,v
retrieving revision 1.304
retrieving revision 1.305
diff -u -d -r1.304 -r1.305
--- cmake.cxx	26 Jun 2007 17:05:26 -0000	1.304
+++ cmake.cxx	27 Jun 2007 16:07:34 -0000	1.305
@@ -2940,6 +2940,13 @@
      "platform supports shared libraries. Basically all current general "
      "general purpose OS do so, the exception are usually embedded systems "
      "with no or special OSs.");
+  cm->DefineProperty
+    ("FIND_LIBRARY_USE_LIB64_PATHS", cmProperty::GLOBAL,
+     "Whether FIND_LIBRARY should automatically search lib64 directories.",
+     "FIND_LIBRARY_USE_LIB64_PATHS is a boolean specifying whether the "
+     "FIND_LIBRARY command should automatically search the lib64 variant of "
+     "directories called lib in the search path when building 64-bit "
+     "binaries.");
 }
 
 



More information about the Cmake-commits mailing list