From 552d775b43f8c164238f52935262b44f863bd3f5 Mon Sep 17 00:00:00 2001 From: Wan-Teh Chang Date: Wed, 4 Sep 2024 11:55:04 -0700 Subject: [PATCH] Also install the DLL import library The target artifact of the ARCHIVE kind means DLL import libraries for shared library targets on Windows. See https://cmake.org/cmake/help/latest/command/install.html#targets Change-Id: Id22e362b39648d5b155c6f2359876ee9d90786a3 Reviewed-on: https://chromium-review.googlesource.com/c/libyuv/libyuv/+/5837740 Reviewed-by: Frank Barchard --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 9a20941d5..5223d4c35 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -213,7 +213,7 @@ endif() # install the conversion tool, .so, .a, and all the header files install ( PROGRAMS ${CMAKE_BINARY_DIR}/yuvconvert DESTINATION bin ) install ( TARGETS ${ly_lib_static} DESTINATION lib ) -install ( TARGETS ${ly_lib_shared} LIBRARY DESTINATION lib RUNTIME DESTINATION bin ) +install ( TARGETS ${ly_lib_shared} LIBRARY DESTINATION lib RUNTIME DESTINATION bin ARCHIVE DESTINATION lib ) install ( DIRECTORY ${PROJECT_SOURCE_DIR}/include/ DESTINATION include ) # create the .deb and .rpm packages using cpack