cmake built a 32 bit project in my 64 bit windows
16,378
When you invoke CMake, specify Win64
in the generator option. e.g.:
cmake . -G"Visual Studio 11 Win64"
Author by
user2390930
Updated on June 04, 2022Comments
-
user2390930 almost 2 years
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?