Land #698, install pkgconfig files with ENABLE_LIBRESSL_INSTALL

This commit is contained in:
Brent Cook 2021-11-09 07:05:04 -06:00
commit 7dae172f05

View File

@ -352,6 +352,7 @@ if(LIBRESSL_APPS AND LIBRESSL_TESTS)
add_subdirectory(tests)
endif()
if(ENABLE_LIBRESSL_INSTALL)
if(NOT MSVC)
# Create pkgconfig files.
set(prefix ${CMAKE_INSTALL_PREFIX})
@ -371,6 +372,7 @@ if(NOT MSVC)
install(DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/pkgconfig
DESTINATION ${CMAKE_INSTALL_LIBDIR})
endif()
endif(ENABLE_LIBRESSL_INSTALL)
if(NOT "${OPENSSLDIR}" STREQUAL "")
set(CONF_DIR "${OPENSSLDIR}")