mirror of
https://git.libssh.org/projects/libssh.git
synced 2026-02-09 18:04:25 +09:00
cmake: Fix pkgconfig path relocation in mingw
This fixes patch relocation of the output of pkgconfig by adding missing keywords like prefix, exec_prefix, libdir and includedir. The pkgconfig output changes are like following: * Before: $ pkg-config -libs libssh -lssh * After: $ pkg-config -libs libssh -LF:/msys64/ucrt64/lib -lssh See https://people.freedesktop.org/~dbn/pkg-config-guide.html for further documentation. Signed-off-by: Biswapriyo Nath <nathbappai@gmail.com> Reviewed-by: Jakub Jelen <jjelen@redhat.com>
This commit is contained in:
committed by
Jakub Jelen
parent
26895498fb
commit
425353d986
@@ -125,7 +125,7 @@ add_subdirectory(src)
|
|||||||
|
|
||||||
# pkg-config file
|
# pkg-config file
|
||||||
if (UNIX OR MINGW)
|
if (UNIX OR MINGW)
|
||||||
configure_file(libssh.pc.cmake ${CMAKE_CURRENT_BINARY_DIR}/libssh.pc)
|
configure_file(libssh.pc.cmake ${CMAKE_CURRENT_BINARY_DIR}/libssh.pc @ONLY)
|
||||||
install(
|
install(
|
||||||
FILES
|
FILES
|
||||||
${CMAKE_CURRENT_BINARY_DIR}/libssh.pc
|
${CMAKE_CURRENT_BINARY_DIR}/libssh.pc
|
||||||
|
|||||||
@@ -1,6 +1,10 @@
|
|||||||
Name: ${PROJECT_NAME}
|
prefix=@CMAKE_INSTALL_PREFIX@
|
||||||
Description: The SSH Library
|
exec_prefix=${prefix}
|
||||||
Version: ${PROJECT_VERSION}
|
libdir=@CMAKE_INSTALL_FULL_LIBDIR@
|
||||||
Libs: -L${CMAKE_INSTALL_FULL_LIBDIR} -lssh
|
includedir=@CMAKE_INSTALL_FULL_INCLUDEDIR@
|
||||||
Cflags: -I${CMAKE_INSTALL_FULL_INCLUDEDIR}
|
|
||||||
|
|
||||||
|
Name: @PROJECT_NAME@
|
||||||
|
Description: The SSH Library
|
||||||
|
Version: @PROJECT_VERSION@
|
||||||
|
Libs: -L${libdir} -lssh
|
||||||
|
Cflags: -I${includedir}
|
||||||
|
|||||||
Reference in New Issue
Block a user