Hi,

If I remember correctly you need to define NDEBUG to disable the assert macro.
Probably Visual Studio defaults to adding the NDEBUG define to the
Release builds itself.

Best regards,

Jeroen Janssen

On 9/13/06, Jon Trauntvein <[EMAIL PROTECTED]> wrote:
I have a Linux project that I am building using cmake.  Based upon my
experience with visual studio, I would expect the following differences
between the release and debug builds:

  - debug symbols not included by default
  - Optimisation differences
  - Disabling of debug tools like assert()

I have found that the assert() function is still being compiled into my
executable because the process aborts when an asserted condition is
encountered.  That said and recognising that this may well be
off-topic,  how do I go about disabling asserts using cmake?

Regards,

Jon Trauntvein

_______________________________________________
CMake mailing list
CMake@cmake.org
http://www.cmake.org/mailman/listinfo/cmake

_______________________________________________
CMake mailing list
CMake@cmake.org
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to