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()