Re: [CMake] How can I know the target is 32-bit, or 64bit

2011-08-30 Thread Michael Wild
On Tue 30 Aug 2011 07:54:45 AM CEST, Dongsheng Song wrote: Hi, In CMakeLists.txt, I want to know whether cmake has built-in mechanism that I can know the target is 32-bit, or 64bit ? Thanks, Dongsheng Look at the CMAKE_SIZEOF_VOID_P variable. However, normally this is better handled in

Re: [CMake] How can I know the target is 32-bit, or 64bit

2011-08-30 Thread J Decker
at the moment I just set an option for linux, since I don't often have dual mode compilers... just set it in the config... msvc has CMAKE_CL_64 which can be tested to set options. On Mon, Aug 29, 2011 at 10:54 PM, Dongsheng Song dongsheng.s...@gmail.com wrote: Hi, In CMakeLists.txt, I want to

Re: [CMake] How can I know the target is 32-bit, or 64bit

2011-08-30 Thread Pawel Sikora
On Tuesday 30 of August 2011 08:40:08 Michael Wild wrote: On Tue 30 Aug 2011 07:54:45 AM CEST, Dongsheng Song wrote: Hi, In CMakeLists.txt, I want to know whether cmake has built-in mechanism that I can know the target is 32-bit, or 64bit ? Thanks, Dongsheng Look at the

[CMake] How can I know the target is 32-bit, or 64bit

2011-08-29 Thread Dongsheng Song
Hi, In CMakeLists.txt, I want to know whether cmake has built-in mechanism that I can know the target is 32-bit, or 64bit ? Thanks, Dongsheng ___ Powered by www.kitware.com Visit other Kitware open-source projects at