Browse Source

BUG: FIND_LIBRARY should not require CMAKE_SIZEOF_VOID_P to be set.

Brad King 17 years ago
parent
commit
3fdf141197
1 changed files with 2 additions and 2 deletions
  1. 2 2
      Source/cmFindLibraryCommand.cxx

+ 2 - 2
Source/cmFindLibraryCommand.cxx

@@ -167,8 +167,8 @@ void cmFindLibraryCommand::AddLib64Paths()
     {
     return;
     }
-  std::string voidsize = 
-    this->Makefile->GetRequiredDefinition("CMAKE_SIZEOF_VOID_P");
+  std::string voidsize =
+    this->Makefile->GetSafeDefinition("CMAKE_SIZEOF_VOID_P");
   int size = atoi(voidsize.c_str());
   if(size != 8)
     {