Index: shiboken-1.1.2/cmake/Modules/FindPython3Libs.cmake =================================================================== --- shiboken-1.1.2.orig/cmake/Modules/FindPython3Libs.cmake 2012-07-04 18:25:37.000000000 +0000 +++ shiboken-1.1.2/cmake/Modules/FindPython3Libs.cmake 2013-02-22 22:43:23.813268018 +0000 @@ -114,11 +114,19 @@ PYTHON3_INCLUDE_DIR ) +execute_process( + COMMAND ${PYTHON3_EXECUTABLE} -c "from distutils import sysconfig; \\ + print(sysconfig.get_python_inc(plat_specific=True));" + OUTPUT_VARIABLE PYTHON3_PLAT_INCDIR + OUTPUT_STRIP_TRAILING_WHITESPACE) + +message("PYTHON PLAT INC: ${PYTHON3_PLAT_INCDIR}") + # We use PYTHON3_INCLUDE_DIR, PYTHON3_LIBRARY and PYTHON3_DEBUG_LIBRARY for the # cache entries because they are meant to specify the location of a single # library. We now set the variables listed by the documentation for this # module. -SET(PYTHON3_INCLUDE_DIRS "${PYTHON3_INCLUDE_DIR}") +SET(PYTHON3_INCLUDE_DIRS "${PYTHON3_INCLUDE_DIR}" "${PYTHON3_PLAT_INCDIR}") SET(PYTHON3_LIBRARIES "${PYTHON3_LIBRARY}") SET(PYTHON3_DEBUG_LIBRARIES "${PYTHON3_DEBUG_LIBRARY}")