Explicitly set install location when building shared libs

This commit is contained in:
Don 2019-02-06 10:26:30 -08:00
parent d93842db3e
commit 2591960e2f
2 changed files with 6 additions and 2 deletions

View File

@ -51,7 +51,9 @@ if(ENABLE_SHARED_LIB)
)
install(TARGETS nghttp2
DESTINATION "${CMAKE_INSTALL_LIBDIR}")
ARCHIVE DESTINATION "${CMAKE_INSTALL_LIBDIR}"
LIBRARY DESTINATION "${CMAKE_INSTALL_LIBDIR}"
RUNTIME DESTINATION "${CMAKE_INSTALL_BINDIR}")
endif()
if(HAVE_CUNIT OR ENABLE_STATIC_LIB)

View File

@ -263,7 +263,9 @@ if(ENABLE_ASIO_LIB)
VERSION 1.0.0 SOVERSION 1)
install(TARGETS nghttp2_asio
DESTINATION "${CMAKE_INSTALL_LIBDIR}")
ARCHIVE DESTINATION "${CMAKE_INSTALL_LIBDIR}"
LIBRARY DESTINATION "${CMAKE_INSTALL_LIBDIR}"
RUNTIME DESTINATION "${CMAKE_INSTALL_BINDIR}")
install(FILES "${CMAKE_CURRENT_BINARY_DIR}/libnghttp2_asio.pc"
DESTINATION "${CMAKE_INSTALL_LIBDIR}/pkgconfig")