Skip to content

Commit e99941a

Browse files
committed
fixed libsrtp.pc to be generated in binary directory and installed in prefix/lib/pkgconfig
1 parent 5fc548f commit e99941a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

CMakeLists.txt

+3-1
Original file line numberDiff line numberDiff line change
@@ -244,8 +244,10 @@ if(MSVC)
244244
set_target_properties(${libname} PROPERTIES
245245
COMPILE_FLAGS "/wd4018 /wd4244")
246246
else()
247-
configure_file(libsrtp.pc.in ${CMAKE_INSTALL_PREFIX}/lib/pkgconfig/libsrtp.pc
247+
configure_file(libsrtp.pc.in ${CMAKE_BINARY_DIR}/libsrtp.pc
248248
@ONLY)
249+
install(FILES "${CMAKE_BINARY_DIR}/libsrtp.pc"
250+
DESTINATION "${CMAKE_INSTALL_PREFIX}/lib/pkgconfig")
249251
endif()
250252

251253
set_target_properties(${libname} PROPERTIES

0 commit comments

Comments
 (0)