uvgRTP icon indicating copy to clipboard operation
uvgRTP copied to clipboard

uvgrtp.pc is being install into system path

Open ashley-b opened this issue 3 years ago • 0 comments

uvgrtp.pc is being install to system path regardless of CMAKE_INSTALL_PREFIX

cmake --install .  --prefix tmp
CMake Error at cmake_install.cmake:59 (file):
  file cannot create directory: /usr/local/lib/pkgconfig.  Maybe need
  administrative privileges.

https://github.com/ultravideo/uvgRTP/blob/dea14a3e98a1d843a6ff499d493f44a19730b743/CMakeLists.txt#L182

Maybe it should be this ?

install(FILES ${CMAKE_CURRENT_BINARY_DIR}/uvgrtp.pc DESTINATION lib/pkgconfig)

ashley-b avatar Feb 18 '22 07:02 ashley-b