I use cmake to generate a NMake file, everything goes fine.
I use the x64 toolsets (without Visual Studio, only the SDK), so I type nmake, but it generate a x86 build and not a x64 build.
Do you know why ? and how to force nmake to target x64 ?
Thanks
CMake is software designed to automate compilation on various systems. We'll need both the make tool and a C or C++ compiler to build a project. As a result, we have a 32-bit executable program linked to a 32-bit C library.
The Microsoft Program Maintenance Utility (NMAKE. EXE) is a command-line tool included with Visual Studio. It builds projects based on commands that are contained in a description file, usually called a makefile. NMAKE must run in a Developer Command Prompt window.
Just to share, use the following to force the x64 platform. Use this command prompt command.
VsDevCmd.bat -host_arch=amd64 -arch=amd64
Both -host_arch and -arch are mandatory !
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With