summaryrefslogtreecommitdiffstats
path: root/Source/cmFindCommon.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2009-09-30 17:45:14 (GMT)
committerBrad King <brad.king@kitware.com>2009-09-30 17:45:14 (GMT)
commit56d1a1780d45d8f9f852e32162153d80721b4662 (patch)
tree7035af3c8c36da7cdf398c6fc522e10f459102b8 /Source/cmFindCommon.cxx
parentf9c0e139758ed38975cce8d78420b5b5ba36bbbd (diff)
downloadCMake-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/cmFindCommon.cxx')
-rw-r--r--Source/cmFindCommon.cxx10
1 files changed, 3 insertions, 7 deletions
diff --git a/Source/cmFindCommon.cxx b/Source/cmFindCommon.cxx
index 70c0f73..f4c0064 100644
--- a/Source/cmFindCommon.cxx
+++ b/Source/cmFindCommon.cxx
@@ -324,14 +324,10 @@ void cmFindCommon::AddUserPath(std::string const& p,
// it.
cmSystemTools::KeyWOW64 view = cmSystemTools::KeyWOW64_32;
cmSystemTools::KeyWOW64 other_view = cmSystemTools::KeyWOW64_64;
- if(const char* psize =
- this->Makefile->GetDefinition("CMAKE_SIZEOF_VOID_P"))
+ if(this->Makefile->PlatformIs64Bit())
{
- if(atoi(psize) == 8)
- {
- view = cmSystemTools::KeyWOW64_64;
- other_view = cmSystemTools::KeyWOW64_32;
- }
+ view = cmSystemTools::KeyWOW64_64;
+ other_view = cmSystemTools::KeyWOW64_32;
}
// Expand using the view of the target application.