File tree Expand file tree Collapse file tree 1 file changed +5
-7
lines changed Expand file tree Collapse file tree 1 file changed +5
-7
lines changed Original file line number Diff line number Diff line change @@ -61,12 +61,10 @@ if(SWIG_FOUND)
61
61
if (PYTHONLIBS_FOUND )
62
62
include_directories (${PYTHON_INCLUDE_PATH} )
63
63
64
- if (NOT DEFINED PYTHONLIBS_VERSION_STRING ) # Since CMake 2.8.8
65
- # Get Python version from include path
66
- string (LENGTH ${PYTHON_INCLUDE_DIRS} PYTHON_INCLUDE_DIRS_LENGTH )
67
- math (EXPR PYTHON_INCLUDE_DIRS_LENGTH "${PYTHON_INCLUDE_DIRS_LENGTH} - 3" )
68
- string (SUBSTRING ${PYTHON_INCLUDE_DIRS} ${PYTHON_INCLUDE_DIRS_LENGTH} 3 PYTHONLIBS_VERSION_STRING )
69
- endif ()
64
+ # Get Python version from include path
65
+ string (LENGTH ${PYTHON_INCLUDE_DIR} PYTHON_INCLUDE_DIRS_LENGTH )
66
+ math (EXPR PYTHON_INCLUDE_DIRS_LENGTH "${PYTHON_INCLUDE_DIRS_LENGTH} - 3" )
67
+ string (SUBSTRING ${PYTHON_INCLUDE_DIR} ${PYTHON_INCLUDE_DIRS_LENGTH} 3 PYTHONLIBS_VERSION_STRING )
70
68
71
69
# Swig flags
72
70
set (CMAKE_SWIG_FLAGS -c++ -fcompact )
@@ -80,7 +78,7 @@ if(SWIG_FOUND)
80
78
swig_link_libraries (avtranscoder-py avtranscoder-shared ${PYTHON_LIBRARIES} )
81
79
82
80
# Install python interface
83
- file ( GLOB AVTRANSCODER_PYTHON_BINDING_FILE "${CMAKE_SWIG_OUTDIR} /* .py" )
81
+ set ( AVTRANSCODER_PYTHON_BINDING_FILE "${CMAKE_SWIG_OUTDIR} /AvTranscoder .py" )
84
82
install (
85
83
FILES ${AVTRANSCODER_PYTHON_BINDING_FILE}
86
84
RENAME "avtranscoder.py"
You can’t perform that action at this time.
0 commit comments