FindPython.cmake revision 3c147b1dc203f9815cb45e24add22478e936d1e8
# figure out Python flags
FIND_PACKAGE(PythonInterp)
IF(PYTHONINTERP_FOUND)
EXEC_PROGRAM(${PYTHON_EXECUTABLE}
ARGS ${CMAKE_SOURCE_DIR}/makelib/python_config_var.py LIBS
OUTPUT_VARIABLE PYTHON_LINK_LIBRARIES )
EXEC_PROGRAM(${PYTHON_EXECUTABLE}
ARGS ${CMAKE_SOURCE_DIR}/makelib/python_config_var.py LINKFORSTATIC
OUTPUT_VARIABLE PYTHON_LINKFORSTATIC )
ELSE(PYTHONINTERP_FOUND)
SET(PYTHON_LINK_LIBRARIES "")
SET(PYTHON_LINKFORSTATIC "")
ENDIF(PYTHONINTERP_FOUND)