mirror of
https://github.com/VectorCamp/vectorscan.git
synced 2025-06-28 16:41:01 +03:00
pkgconfig: Add Libs.private for static linking
This commit is contained in:
parent
74d5d0e819
commit
e52783017e
@ -349,6 +349,14 @@ configure_file(${CMAKE_MODULE_PATH}/config.h.in ${PROJECT_BINARY_DIR}/config.h)
|
|||||||
configure_file(src/hs_version.h.in ${PROJECT_BINARY_DIR}/hs_version.h)
|
configure_file(src/hs_version.h.in ${PROJECT_BINARY_DIR}/hs_version.h)
|
||||||
|
|
||||||
if (NOT WIN32)
|
if (NOT WIN32)
|
||||||
|
# expand out library names for pkgconfig static link info
|
||||||
|
foreach (LIB ${CMAKE_CXX_IMPLICIT_LINK_LIBRARIES})
|
||||||
|
# this is fragile, but protects us from toolchain specific files
|
||||||
|
if (NOT EXISTS ${LIB})
|
||||||
|
set(PRIVATE_LIBS "${PRIVATE_LIBS} -l${LIB}")
|
||||||
|
endif()
|
||||||
|
endforeach()
|
||||||
|
|
||||||
configure_file(libhs.pc.in libhs.pc @ONLY) # only replace @ quoted vars
|
configure_file(libhs.pc.in libhs.pc @ONLY) # only replace @ quoted vars
|
||||||
install(FILES ${CMAKE_BINARY_DIR}/libhs.pc
|
install(FILES ${CMAKE_BINARY_DIR}/libhs.pc
|
||||||
DESTINATION "${CMAKE_INSTALL_PREFIX}/lib/pkgconfig")
|
DESTINATION "${CMAKE_INSTALL_PREFIX}/lib/pkgconfig")
|
||||||
|
@ -7,4 +7,5 @@ Name: libhs
|
|||||||
Description: Intel(R) Hyperscan Library
|
Description: Intel(R) Hyperscan Library
|
||||||
Version: @HS_VERSION@
|
Version: @HS_VERSION@
|
||||||
Libs: -L${libdir} -lhs
|
Libs: -L${libdir} -lhs
|
||||||
|
Libs.private: @PRIVATE_LIBS@
|
||||||
Cflags: -I${includedir}/hs
|
Cflags: -I${includedir}/hs
|
||||||
|
Loading…
x
Reference in New Issue
Block a user