summaryrefslogtreecommitdiffstats
path: root/Source/cmFindLibraryCommand.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2008-02-11 22:00:45 (GMT)
committerBrad King <brad.king@kitware.com>2008-02-11 22:00:45 (GMT)
commit3fdf141197210532446d345c482303d0ffac13a1 (patch)
treebdbc271f31bb53f13e9b75ad731522d134e152e8 /Source/cmFindLibraryCommand.cxx
parent2e2f9b4be338c98bdcb42d51193c9c755fd04f33 (diff)
downloadCMake-3fdf141197210532446d345c482303d0ffac13a1.zip
CMake-3fdf141197210532446d345c482303d0ffac13a1.tar.gz
CMake-3fdf141197210532446d345c482303d0ffac13a1.tar.bz2
BUG: FIND_LIBRARY should not require CMAKE_SIZEOF_VOID_P to be set.
Diffstat (limited to 'Source/cmFindLibraryCommand.cxx')
-rw-r--r--Source/cmFindLibraryCommand.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/cmFindLibraryCommand.cxx b/Source/cmFindLibraryCommand.cxx
index 9ee669d..ab61401 100644
--- a/Source/cmFindLibraryCommand.cxx
+++ b/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)
{