Don't install pkgconfig if ENABLE_LIBRESSL_INSTALL is disabled.
This commit is contained in:
parent
0319bb7edb
commit
2d853ecfc3
@ -352,25 +352,27 @@ if(LIBRESSL_APPS AND LIBRESSL_TESTS)
|
|||||||
add_subdirectory(tests)
|
add_subdirectory(tests)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if(NOT MSVC)
|
if(ENABLE_LIBRESSL_INSTALL)
|
||||||
# Create pkgconfig files.
|
if(NOT MSVC)
|
||||||
set(prefix ${CMAKE_INSTALL_PREFIX})
|
# Create pkgconfig files.
|
||||||
set(exec_prefix \${prefix})
|
set(prefix ${CMAKE_INSTALL_PREFIX})
|
||||||
set(libdir \${exec_prefix}/${CMAKE_INSTALL_LIBDIR})
|
set(exec_prefix \${prefix})
|
||||||
set(includedir \${prefix}/include)
|
set(libdir \${exec_prefix}/${CMAKE_INSTALL_LIBDIR})
|
||||||
if(PLATFORM_LIBS)
|
set(includedir \${prefix}/include)
|
||||||
string(REGEX REPLACE ";" " -l" PLATFORM_LDADD ";${PLATFORM_LIBS}")
|
if(PLATFORM_LIBS)
|
||||||
|
string(REGEX REPLACE ";" " -l" PLATFORM_LDADD ";${PLATFORM_LIBS}")
|
||||||
|
endif()
|
||||||
|
file(STRINGS "VERSION" VERSION LIMIT_COUNT 1)
|
||||||
|
file(GLOB OPENSSL_PKGCONFIGS "*.pc.in")
|
||||||
|
foreach(file ${OPENSSL_PKGCONFIGS})
|
||||||
|
get_filename_component(filename ${file} NAME)
|
||||||
|
string(REPLACE ".in" "" new_file "${filename}")
|
||||||
|
configure_file(${filename} pkgconfig/${new_file} @ONLY)
|
||||||
|
endforeach()
|
||||||
|
install(DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/pkgconfig
|
||||||
|
DESTINATION ${CMAKE_INSTALL_LIBDIR})
|
||||||
endif()
|
endif()
|
||||||
file(STRINGS "VERSION" VERSION LIMIT_COUNT 1)
|
endif(ENABLE_LIBRESSL_INSTALL)
|
||||||
file(GLOB OPENSSL_PKGCONFIGS "*.pc.in")
|
|
||||||
foreach(file ${OPENSSL_PKGCONFIGS})
|
|
||||||
get_filename_component(filename ${file} NAME)
|
|
||||||
string(REPLACE ".in" "" new_file "${filename}")
|
|
||||||
configure_file(${filename} pkgconfig/${new_file} @ONLY)
|
|
||||||
endforeach()
|
|
||||||
install(DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/pkgconfig
|
|
||||||
DESTINATION ${CMAKE_INSTALL_LIBDIR})
|
|
||||||
endif()
|
|
||||||
|
|
||||||
if(NOT "${OPENSSLDIR}" STREQUAL "")
|
if(NOT "${OPENSSLDIR}" STREQUAL "")
|
||||||
set(CONF_DIR "${OPENSSLDIR}")
|
set(CONF_DIR "${OPENSSLDIR}")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user