From f5d172c869295ef9fff2e3de524690e523dc5d42 Mon Sep 17 00:00:00 2001 From: Alexey Sokolov Date: Wed, 24 May 2017 10:04:20 +0100 Subject: Build also in debug mode for windows (#2192) * Build also in debug mode for windows See #2191 * Don't mix /Od and -O2 on windows build. -O2 comes from perl * Reindent perlcore CMakeLists * Fix debug python build on windows * Rearrange environment vars in appveyor * Try to publish pdb files too * install qts and kvirc's debug pdbs in debug config * use TARGET_PDB_FILE instead --- src/modules/pythoncore/pythonheaderwrapper.h | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 src/modules/pythoncore/pythonheaderwrapper.h (limited to 'src/modules/pythoncore/pythonheaderwrapper.h') diff --git a/src/modules/pythoncore/pythonheaderwrapper.h b/src/modules/pythoncore/pythonheaderwrapper.h new file mode 100644 index 000000000..47f60d361 --- /dev/null +++ b/src/modules/pythoncore/pythonheaderwrapper.h @@ -0,0 +1,14 @@ +#ifndef _PYTHONHEADERWRAPPER_H_ +#define _PYTHONHEADERWRAPPER_H_ + +// See http://stackoverflow.com/questions/16200997/why-doesnt-include-python-h-work and http://stackoverflow.com/questions/19716859/puzzling-dependency-of-boost-python-1-54-debug-build-to-python27-lib-on-window + +#if defined(_DEBUG) && defined(_MSC_VER) +# undef _DEBUG +# include +# define _DEBUG 1 +#else +# include +#endif + +#endif -- cgit v1.3.1-10-gc9f91