Skip to content

Commit

Permalink
Fix Windows install dir for CMake builds.
Browse files Browse the repository at this point in the history
  • Loading branch information
enzo1982 committed Jan 28, 2023
1 parent 53ec29a commit d87a845
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit d87a845

Please sign in to comment.