diff options
author | Brad King <brad.king@kitware.com> | 2016-06-13 13:54:17 (GMT) |
---|---|---|
committer | CMake Topic Stage <kwrobot@kitware.com> | 2016-06-13 13:54:17 (GMT) |
commit | 941fbe31f56e0841280288bf3e43de873aabe957 (patch) | |
tree | bd4d3538fc739c5bb86c8085a664a0cc9c3b573b /Source/cmMakefile.cxx | |
parent | ff1cce464d6e372cd2aced01fac28394c213aca9 (diff) | |
parent | 896ad251de49f167f4ce3cbbcf9a6cce85a16681 (diff) | |
download | CMake-941fbe31f56e0841280288bf3e43de873aabe957.zip CMake-941fbe31f56e0841280288bf3e43de873aabe957.tar.gz CMake-941fbe31f56e0841280288bf3e43de873aabe957.tar.bz2 |
Merge topic 'find-lib32'
896ad251 Teach find_library and find_package to search lib32 paths (#11260)
Diffstat (limited to 'Source/cmMakefile.cxx')
-rw-r--r-- | Source/cmMakefile.cxx | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/Source/cmMakefile.cxx b/Source/cmMakefile.cxx index e3d6614..741a220 100644 --- a/Source/cmMakefile.cxx +++ b/Source/cmMakefile.cxx @@ -2076,6 +2076,14 @@ bool cmMakefile::IsSet(const std::string& name) const return true; } +bool cmMakefile::PlatformIs32Bit() const +{ + if (const char* sizeof_dptr = this->GetDefinition("CMAKE_SIZEOF_VOID_P")) { + return atoi(sizeof_dptr) == 4; + } + return false; +} + bool cmMakefile::PlatformIs64Bit() const { if (const char* sizeof_dptr = this->GetDefinition("CMAKE_SIZEOF_VOID_P")) { |