I'm using a cmake file(someone else wrote it) to build a project. I looked at the CMakeLists and saw he used
if( CMAKE_SIZEOF_VOID_P EQUAL 8 )
to detect if the system is 64 bit. I'm using 64 bit windows 8 and it should be built into a 64 bit project. Why do I end up having a 32 bit project? Is there any other thing I should do?
When you invoke CMake, specify Win64
in the generator option. eg:
cmake . -G"Visual Studio 11 Win64"
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.