Set the _DEBUG macro for CMake also.

This commit is contained in:
Joakim Söderberg 2013-02-22 09:28:13 +08:00 committed by Andy Green
parent 20aedc89c1
commit 51197c0d6f
2 changed files with 10 additions and 0 deletions

View file

@ -104,6 +104,12 @@ if (WITHOUT_CLIENT)
set(LWS_NO_CLIENT 1)
endif()
if (WITHOUT_DEBUG)
set(_DEBUG 0)
else()
set(_DEBUG 1)
endif()
if (MINGW)
set(LWS_MINGW_SUPPORT 1)
endif()

View file

@ -1,5 +1,9 @@
/* config.h.in. Generated from configure.ac by autoheader. */
#ifndef WIN32
#cmakedefine _DEBUG
#endif
/* Define to 1 to use CyaSSL as a replacement for OpenSSL.
* LWS_OPENSSL_SUPPORT needs to be set also for this to work. */
#cmakedefine USE_CYASSL