summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHugo Parente Lima <hugo.pl@gmail.com>2010-12-22 19:17:02 -0200
committerHugo Parente Lima <hugo.pl@gmail.com>2010-12-22 19:45:33 -0200
commit473da995f2ba6f8277b0df7cf4b96a5b36b7edc6 (patch)
treebdcbecc27e2e36d059e234254a2af92eb715342c
parentba3791086fc50efb7beeb28302cd7aad67f06af8 (diff)
downloadshiboken-473da995f2ba6f8277b0df7cf4b96a5b36b7edc6.tar.gz
shiboken-473da995f2ba6f8277b0df7cf4b96a5b36b7edc6.tar.xz
shiboken-473da995f2ba6f8277b0df7cf4b96a5b36b7edc6.zip
Fix Py_DEBUG detection on Windows.
On Windows sysconfig.get('Py_DEBUG') can return None instead of 0. Reviewer: Marcelo Lira <marcelo.lira@openbossa.org> Renato Ara├║jo <renato.filho@openbossa.org>
-rw-r--r--CMakeLists.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index cfacdb84..d0891ce9 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -66,7 +66,7 @@ add_custom_target(uninstall "${CMAKE_COMMAND}"
# Detect if the python libs were compiled in debug mode
execute_process(
COMMAND ${PYTHON_EXECUTABLE} -c "from distutils import sysconfig; \\
- print sysconfig.get_config_var('Py_DEBUG')"
+ print bool(sysconfig.get_config_var('Py_DEBUG'))"
OUTPUT_VARIABLE PY_DEBUG
OUTPUT_STRIP_TRAILING_WHITESPACE)