From beed9419493f27b1d252c56cd0c3466209aaed83 Mon Sep 17 00:00:00 2001 From: Andrey Kamaev Date: Thu, 23 Jun 2011 09:18:55 +0000 Subject: [PATCH] Fixed NumPy search on Windows x64 --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 28014db775..ebeefd92a7 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -611,7 +611,7 @@ if(WIN32) endif() # Attempt to discover the NumPy include directory. If this succeeds, then build python API with NumPy -execute_process(COMMAND ${PYTHON_EXECUTABLE} -c "import numpy.distutils; print numpy.distutils.misc_util.get_numpy_include_dirs()[0]" +execute_process(COMMAND ${PYTHON_EXECUTABLE} -c "import os; os.environ['DISTUTILS_USE_SDK']='1'; import numpy.distutils; print numpy.distutils.misc_util.get_numpy_include_dirs()[0]" RESULT_VARIABLE PYTHON_NUMPY_PROCESS OUTPUT_VARIABLE PYTHON_NUMPY_INCLUDE_DIRS OUTPUT_STRIP_TRAILING_WHITESPACE)