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 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 > http://www.kitware.com/opensource/opensource.html > > Please keep messages on-topic and check the CMake FAQ at: > http://www.cmake.org/Wiki/CMake_FAQ > > Follow this link to subscribe/unsubscribe: > http://www.cmake.org/mailman/listinfo/cmake > _______________________________________________ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://www.cmake.org/mailman/listinfo/cmake