SFML community forums

General => General discussions => Topic started by: areriff on February 03, 2018, 02:45:49 pm

Title: What type of library does different CMAKE_BUILD_TYPE generate?
Post by: areriff 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?
Title: Re: What type of library does different CMAKE_BUILD_TYPE generate?
Post by: Laurent 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.