From d87a84550f5cd996f72ba8fcc11f37d01607cec4 Mon Sep 17 00:00:00 2001 From: Robert Kausch Date: Sat, 28 Jan 2023 22:25:43 +0100 Subject: [PATCH] Fix Windows install dir for CMake builds. --- CMakeLists.txt | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 7eb9f45..e0187cd 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -364,7 +364,11 @@ include(GNUInstallDirs) install(FILES ${MP4V2_PUBLIC_HEADERS} DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}/mp4v2") if(BUILD_SHARED) - install(TARGETS mp4v2 LIBRARY DESTINATION "${CMAKE_INSTALL_LIBDIR}") + if(WIN32) + install(TARGETS mp4v2 RUNTIME DESTINATION "${CMAKE_INSTALL_BINDIR}") + else() + install(TARGETS mp4v2 LIBRARY DESTINATION "${CMAKE_INSTALL_LIBDIR}") + endif() else() install(TARGETS mp4v2 ARCHIVE DESTINATION "${CMAKE_INSTALL_LIBDIR}") endif()