Skip to content

Commit f5b51aa

Browse files
author
Clement Champetier
committed
CMake: fix install of libraries
Do not need to reconfigure the make file to be able to install libraries.
1 parent dcdccef commit f5b51aa

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/CMakeLists.txt

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,10 @@ install(
3737
PATTERN "Profiles" EXCLUDE
3838
)
3939
set(LIBRARY_OUTPUT_PATH "${PROJECT_BINARY_DIR}/lib")
40-
set(AVTRANSCODER_LIBRARY_OUTPUT_PATH "${LIBRARY_OUTPUT_PATH}")
41-
file(GLOB_RECURSE AVTRANSCODER_OUTPUT_LIBRARIES "${AVTRANSCODER_LIBRARY_OUTPUT_PATH}/*")
42-
install(FILES ${AVTRANSCODER_OUTPUT_LIBRARIES} DESTINATION "lib/")
40+
install(
41+
DIRECTORY "${LIBRARY_OUTPUT_PATH}"
42+
DESTINATION "${CMAKE_INSTALL_PREFIX}"
43+
)
4344

4445
### SWIG
4546
find_package(SWIG)

0 commit comments

Comments
 (0)