Home > Mobile >  size of exe file made using cmake too large
size of exe file made using cmake too large

Time:03-30

I was making a cpp program using Visual Studio. The size of the executable was 490 KB.

But when i make the same executable by creating CMake Project in visual studio, the size of the executable is 1140 KB.

Both works, however.

CodePudding user response:

It was found that CMake was building RelWithDebInfo set(CMAKE_BUILD_TYPE Release) solved my problem. Size of executable was reduced to 483 KB.

  • Related