Kris Thielemans wrote:
> I'm surprised that the Release build doesn't use the -DNDEBUG flag for gcc.
> This means that all the asserts in the code will still be used, which is
> probably not what you want in a Release build. I guess I could have run
> cmake wrong, but it never asked me something about this I believe. (I did
> say No to advanced options)
I noticed this recently too. I don't think VXL modifies the settings at
all, and just uses the CMake defaults. The CMake mailing list might be a
more appropriate place to get this fixed. FWIW, I also agree that the
Release style builds should have -DNDEBUG defined on all platforms.
I'm not entirely sure how the CMAKE_CXX_FLAGS_DEBUG, or
CMAKE_C_FLAGS_MINSIZEREL work on a Unix bulid - they are more aimed at
the MSDevStudio builds. In general on Unix, I set all the
CMAKE_CXX_FLAGS_* settings (turn on Advanced options to see them) to
empty, and just modify CMAKE_CXX_FLAGS as appropriate, for each build.