Skip to content

Commit 4315699

Browse files
author
Clement Champetier
committed
Cmake: fix install python binding file
* Can't use file(GLOB ...) function to get a file which doesn't exist yet. * Now no need to reconfigure CMake file after a first build to install the python binding file avtranscoder.py.
1 parent b293705 commit 4315699

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ if(SWIG_FOUND)
8080
swig_link_libraries(avtranscoder-py avtranscoder-shared ${PYTHON_LIBRARIES})
8181

8282
# Install python interface
83-
file(GLOB AVTRANSCODER_PYTHON_BINDING_FILE "${CMAKE_SWIG_OUTDIR}/*.py")
83+
set(AVTRANSCODER_PYTHON_BINDING_FILE "${CMAKE_SWIG_OUTDIR}/AvTranscoder.py")
8484
install(
8585
FILES ${AVTRANSCODER_PYTHON_BINDING_FILE}
8686
RENAME "avtranscoder.py"

0 commit comments

Comments
 (0)