Don't install pkgconfig if ENABLE_LIBRESSL_INSTALL is disabled.

This commit is contained in:
Tobias Heider 2021-11-06 23:31:26 +01:00
parent 0319bb7edb
commit 2d853ecfc3

View File

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