Skip to content

Commit

Permalink
[build] install scripts/srt-ffplay in the bin directory
Browse files Browse the repository at this point in the history
We don't need to use CMAKE_INSTALL_BINDIR which is not defined when
GNUInstallDirs is not used. Using "TYPE BIN" will have the same result
and will automatically pick the same as CMAKE_INSTALL_BINDIR.

https://cmake.org/cmake/help/latest/command/install.html#installing-files
  • Loading branch information
robUx4 committed Sep 6, 2022
1 parent d0b2c8a commit a1fb035
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions CMakeLists.txt
Expand Up @@ -1339,9 +1339,11 @@ if (ENABLE_UNITTESTS AND ENABLE_CXX11)

endif()


install(PROGRAMS scripts/srt-ffplay DESTINATION ${CMAKE_INSTALL_BINDIR})

if (GNU_DIRS)
install(PROGRAMS scripts/srt-ffplay DESTINATION ${CMAKE_INSTALL_BINDIR})
else()
install(PROGRAMS scripts/srt-ffplay TYPE BIN)
endif()

if (DEFINED SRT_EXTRA_APPS_INC)
include(${SRT_EXTRA_APPS_INC}.cmake)
Expand Down

0 comments on commit a1fb035

Please sign in to comment.