IF(DEFINED ENV{PYTHON_INCLUDE})
FILE(TO_CMAKE_PATH $ENV{PYTHON_INCLUDE} PATH_PYTHON_INCLUDE_DIR)
SET(PYTHON_INCLUDE_DIR ${PATH_PYTHON_INCLUDE_DIR} CACHE PATH "path to where Python.h is found" FORCE)
+ELSE()
+ IF(WIN32)
+ IF(DEFINED ENV{PYTHON_ROOT_DIR})
+ SET(PYTHON_ROOT_DIR $ENV{PYTHON_ROOT_DIR})
+ SET(PYTHON_INCLUDE_DIR ${PYTHON_ROOT_DIR} CACHE PATH "path to where Python.h is found" FORCE)
+ ENDIF()
+ ENDIF()
ENDIF()
FIND_PACKAGE(PythonInterp REQUIRED)