Unverified Commit 51226002 authored by Dennis Jenkins's avatar Dennis Jenkins Committed by GitHub

Merge pull request #351 from kiplingw/kip-openssl

Added OpenSSL support to pkg-config manifest...
parents adf5ce0e 2705b7f3
......@@ -65,6 +65,16 @@ endif()
@ONLY
)
# Set libraries...
# Minimum...
set(LIBS "-lpistache -lpthread")
# If building with OpenSSL support...
if(PISTACHE_SSL)
set(LIBS "${LIBS} -lssl -lcrypto")
endif(PISTACHE_SSL)
if(PISTACHE_INSTALL)
# Install header...
install (
......@@ -77,10 +87,11 @@ endif()
# Configure the pkg-config metadata...
# Initialize the metadata variables to support remote builds...
# Initialize the metadata variables and to support remote builds...
set(prefix ${CMAKE_INSTALL_PREFIX})
set(exec_prefix ${CMAKE_INSTALL_PREFIX}/bin)
set(libdir ${CMAKE_INSTALL_PREFIX}/lib)
set(libs ${LIBS})
set(includedir ${CMAKE_INSTALL_PREFIX}/include)
set(version ${VERSION_MAJOR}.${VERSION_MINOR})
......
......@@ -8,7 +8,7 @@ URL: http://pistache.io/
Description: An elegant C++ REST framework.
Version: @version@
Requires:
Libs: -L'${libdir}/' -lpistache -lpthread
Libs: -L'${libdir}/' @libs@
Libs.private:
Cflags: -I'${includedir}/'
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment