Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: What type of library does different CMAKE_BUILD_TYPE generate?  (Read 2685 times)

0 Members and 1 Guest are viewing this topic.

areriff

  • Newbie
  • *
  • Posts: 3
    • View Profile
What type of library does different CMAKE_BUILD_TYPE generate?
« on: February 03, 2018, 02:45:49 pm »
I see different CMAKE_BUILD_TYPE option in CMake. I especially want to know about MinSizeRel.
The *.lib file generated are all have different sizes (even between Release and RelWithDebInfo).
I know that:

- Debug : Build un-optimized debug library with debugging symbol (.pdb)
- Release : Build optimized library without debugging symbol.

- RelWithDebInfo : ?? Build optimized library with debugging symbol ??
- MinSizeRel : ????

The documentation here https://www.sfml-dev.org/tutorials/2.4/compile-with-cmake.php stated that the last two are meant for more advanced build and doesn't explain further.

Can somebody explain?

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Re: What type of library does different CMAKE_BUILD_TYPE generate?
« Reply #1 on: February 03, 2018, 03:44:20 pm »
It's quite easy to deduce what they do from their name.

RelWithDebInfo
A release build with debugging symbols included. Because optimized builds are not just for production (profiling, debugging release bugs, ...).

MinSizeRel
A release build optimized for size rather than for speed, I guess.
Laurent Gomila - SFML developer