Cmake / Windows:
authorThomas Dinges <blender@dingto.org>
Tue, 14 Aug 2012 16:53:40 +0000 (16:53 +0000)
committerThomas Dinges <blender@dingto.org>
Tue, 14 Aug 2012 16:53:40 +0000 (16:53 +0000)
* Fix for Python include path when using msvc 2010.

CMakeLists.txt

index 77f934fcc15f42c4910fb11ef48adc57b87f800a..edcfc7cc16e80072f9fd23ad967955b22c45efce 100644 (file)
@@ -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}")