Define DEBUG and MOO_DEBUG (but not _DEBUG) in debug windows builds.
This commit is contained in:
parent
de5fd73e9a
commit
e10c8b7b69
@ -161,8 +161,11 @@ else()
|
||||
|
||||
set(${var}_RELEASE "${${var}_RELEASE} /Zi")
|
||||
string(REPLACE "/Ob1" "/Ob2" ${var}_RELWITHDEBINFO "${${var}_RELWITHDEBINFO}")
|
||||
|
||||
# /MDd means link with the debug crt library, which we don't want; and /D_DEBUG forces
|
||||
# that as well because of some includes; turn them off.
|
||||
string(REPLACE "/MDd" "/MD" ${var}_DEBUG "${${var}_DEBUG}")
|
||||
string(REPLACE "/D_DEBUG" "" ${var}_DEBUG "${${var}_DEBUG}")
|
||||
string(REPLACE "/D_DEBUG" "/DENABLE_DEBUG=1 /DDEBUG=1 /DMOO_DEBUG=1" ${var}_DEBUG "${${var}_DEBUG}")
|
||||
endforeach()
|
||||
|
||||
set(CMAKE_EXE_LINKER_FLAGS_RELEASE "${CMAKE_EXE_LINKER_FLAGS_RELEASE} /DEBUG /INCREMENTAL")
|
||||
|
@ -1,5 +1,9 @@
|
||||
#ifndef MOO_CONFIG_H
|
||||
#define MOO_CONFIG_H
|
||||
#pragma once
|
||||
|
||||
#if (defined(DEBUG) && ((!DEBUG) || !(MOO_DEBUG) || !(ENABLE_DEBUG))) || \
|
||||
(!defined(DEBUG) && (defined(MOO_DEBUG) || defined(ENABLE_DEBUG)))
|
||||
# error "DEBUG, MOO_DEBUG, and ENABLE_DEBUG must either be all defined to non-zero or all undefined"
|
||||
#endif
|
||||
|
||||
#undef MOO_CL_GCC
|
||||
#undef MOO_CL_MINGW
|
||||
@ -59,5 +63,3 @@
|
||||
# define MOO_CDECL __cdecl
|
||||
# define MOO_STDCALL __stdcall
|
||||
#endif
|
||||
|
||||
#endif /* MOO_CONFIG_H */
|
||||
|
@ -15,3 +15,7 @@
|
||||
#include <windows.h>
|
||||
|
||||
#endif // __WIN32__
|
||||
|
||||
#ifdef MOO_ENABLE_PYTHON
|
||||
#include <Python.h>
|
||||
#endif
|
||||
|
Loading…
x
Reference in New Issue
Block a user