Creating debug (static) libraries with CodeBlocks/MinGW

asked 2015-09-24 09:02:58 -0600

updated 2015-09-24 09:03:48 -0600


I've successfully used CMake to configure and generate a CodeBlocks/MinGW project for OpenCV. When I open up CodeBlocks, I am given many target options including "all". I am able to build "all", but using it does not create debug versions of the library. There is no target for debug, or all-debug, or anything like that.

When configuring CMake, I did tell it that there should be a Release and a Debug @ CMAKE->CMAKE_CONFIGURATION_TYPES=Debug;Release

And the CMAKE_CXX_FLAGS_DEBUG is correctly set to -g

Does anyone have any idea how to get the debug libraries out of a CodeBlocks based configuration?

edit retag flag offensive close merge delete