From 0ec452c152003d5c7126d46c2344f950433757df Mon Sep 17 00:00:00 2001 From: Alexander Shishkov Date: Fri, 17 Jun 2011 13:12:21 +0000 Subject: [PATCH] turned off Python support for Windows in Debug mode --- CMakeLists.txt | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index fb76752fd..06bb40432 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -561,6 +561,12 @@ endif() set(BUILD_NEW_PYTHON_SUPPORT ON CACHE BOOL "Build with Python support") +if (WIN32) + if ("${CMAKE_BUILD_TYPE}" STREQUAL "Debug") + set(BUILD_NEW_PYTHON_SUPPORT OFF) + endif() +endif() + if(BUILD_NEW_PYTHON_SUPPORT) find_package(PythonInterp) find_package(PythonLibs)