Skip to content

Commit

Permalink
Use GNUInstallDirs properly (#69)
Browse files Browse the repository at this point in the history
There is no need to make paths absolute
by prepending CMAKE_INSTALL_PREFIX; this prefix is used
by default if the DESTINATION is a relative path.

Reference: https://cmake.org/cmake/help/latest/module/GNUInstallDirs.html
  • Loading branch information
NickCao authored Aug 4, 2024
1 parent 888118e commit 47605b9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -40,5 +40,5 @@ include_directories(SYSTEM

set_target_properties(linux-pipewire-audio PROPERTIES PREFIX "")

install(TARGETS linux-pipewire-audio LIBRARY DESTINATION ${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_LIBDIR}/obs-plugins)
install(DIRECTORY data/locale DESTINATION ${CMAKE_INSTALL_PREFIX}/share/obs/obs-plugins/linux-pipewire-audio)
install(TARGETS linux-pipewire-audio LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}/obs-plugins)
install(DIRECTORY data/locale DESTINATION ${CMAKE_INSTALL_DATADIR}/obs/obs-plugins/linux-pipewire-audio)

0 comments on commit 47605b9

Please sign in to comment.