From 211d30ea7f4abda6763aa6ee3eae840466eb05cc Mon Sep 17 00:00:00 2001 From: Thomas Dinges Date: Tue, 14 Aug 2012 16:53:40 +0000 Subject: [PATCH] Cmake / Windows: * Fix for Python include path when using msvc 2010. --- CMakeLists.txt | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 77f934fcc15..edcfc7cc16e 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -976,9 +976,10 @@ elseif(WIN32) # normally cached but not since we include them with blender set(PYTHON_VERSION 3.2) # CACHE STRING) set_lib_path(PYTHON "python") - set(PYTHON_INCLUDE_DIR ${PYTHON}/include/python${PYTHON_VERSION}) set(PYTHON_LIBRARY ${PYTHON}/lib/python32.lib) #CACHE FILEPATH - + #Shared includes for both vc2008 and vc2010 + set(PYTHON_INCLUDE_DIR ${LIBDIR}/python/include/python${PYTHON_VERSION}) + # uncached vars set(PYTHON_INCLUDE_DIRS "${PYTHON_INCLUDE_DIR}") set(PYTHON_LIBRARIES "${PYTHON_LIBRARY}") -- 2.28.0