blob: 3f05b58f5bbeea052dbee7af2e5e4e3d7fbf1c03 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
# figure out Python flags
#TODO - rewrite to use ALLCAPS?
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)
|