diff options
author | Brad King <brad.king@kitware.com> | 2009-09-30 17:45:14 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2009-09-30 17:45:14 (GMT) |
commit | 56d1a1780d45d8f9f852e32162153d80721b4662 (patch) | |
tree | 7035af3c8c36da7cdf398c6fc522e10f459102b8 /Source/cmFindPackageCommand.cxx | |
parent | f9c0e139758ed38975cce8d78420b5b5ba36bbbd (diff) | |
download | CMake-56d1a1780d45d8f9f852e32162153d80721b4662.zip CMake-56d1a1780d45d8f9f852e32162153d80721b4662.tar.gz CMake-56d1a1780d45d8f9f852e32162153d80721b4662.tar.bz2 |
Create cmMakefile::PlatformIs64Bit helper method
This method centralizes tests for whether CMAKE_SIZEOF_VOID_P is 8.
Diffstat (limited to 'Source/cmFindPackageCommand.cxx')
-rw-r--r-- | Source/cmFindPackageCommand.cxx | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/Source/cmFindPackageCommand.cxx b/Source/cmFindPackageCommand.cxx index e7beb84..165dbc2 100644 --- a/Source/cmFindPackageCommand.cxx +++ b/Source/cmFindPackageCommand.cxx @@ -329,15 +329,11 @@ bool cmFindPackageCommand this->DebugMode = this->Makefile->IsOn("CMAKE_FIND_DEBUG_MODE"); // Lookup whether lib64 paths should be used. - if(const char* sizeof_dptr = - this->Makefile->GetDefinition("CMAKE_SIZEOF_VOID_P")) + if(this->Makefile->PlatformIs64Bit() && + this->Makefile->GetCMakeInstance() + ->GetPropertyAsBool("FIND_LIBRARY_USE_LIB64_PATHS")) { - if(atoi(sizeof_dptr) == 8 && - this->Makefile->GetCMakeInstance() - ->GetPropertyAsBool("FIND_LIBRARY_USE_LIB64_PATHS")) - { - this->UseLib64Paths = true; - } + this->UseLib64Paths = true; } // Find the current root path mode. |