When compiling in Visual Studio and CMake will receive a binary file is release or debug?

  • Thread starter Thread starter Millinery
  • Start date Start date
M

Millinery

Guest
Hello, I am trying to compile a program using CMake and vcvarsall.bat file but I have some questions:

  1. When I use the "vcvarsall.bat" amd64 | x86 command, it will produce EXE, DLL files x64 | x86, meaning that these files only work on x64 | x86 and will not work on x86 | x64. Meaning that it only works on x86 or x64, depending on the architecture I specify, is that right?
  2. I have seen an architecture as "x86_amd64 or x86_x64". I have read some documents about it but I still do not fully understand it. Is it when I use it, it will compile into EXE / DLL files x64 and these files can run on both x64 and x86 computers, is that correct?
  3. When compiling using CMake and vcvarsall.bat, will the binary files I get be released or debug? How do I configure the binary after compilation is release or debug?
My goal is to be able to compile into EXE, DLL,... files that can run both on x86 and x64.
Thanks for your answer.

Continue reading...
 
Back
Top