[CMake] Linux release build w/out asserts
Jeroen Janssen
jeroen.janssen at gmail.com
Wed Sep 13 08:16:18 EDT 2006
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 <j.trauntvein at comcast.net> 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 at cmake.org
> http://www.cmake.org/mailman/listinfo/cmake
>
More information about the CMake
mailing list