[Tarantool-patches] [PATCH 3/3] build: install iibCURL headers
Roman Khabibov
roman.habibov at tarantool.org
Thu Mar 18 11:51:54 MSK 2021
Ship libCURL headers to system path "include/tarantool" in the
case of libCURL included as bundled library or static build.
---
CMakeLists.txt | 7 +++++++
rpm/tarantool.spec | 9 +++++++++
2 files changed, 16 insertions(+)
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 5990d026e..0d7d086c5 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -347,6 +347,13 @@ else()
find_package(CURL)
endif()
+# Install headers.
+if (ENABLE_BUNDLED_LIBCURL OR BUILD_STATIC)
+ install(DIRECTORY "${CURL_INCLUDE_DIRS}/curl"
+ DESTINATION ${MODULE_FULL_INCLUDEDIR}
+ FILES_MATCHING PATTERN "*.h")
+endif()
+
#
# Export libcurl symbols if the library is bundled.
#
diff --git a/rpm/tarantool.spec b/rpm/tarantool.spec
index cbc97606b..12997f191 100644
--- a/rpm/tarantool.spec
+++ b/rpm/tarantool.spec
@@ -251,6 +251,15 @@ fi
%{_includedir}/tarantool/luajit.h
%{_includedir}/tarantool/lualib.h
%{_includedir}/tarantool/module.h
+%{_includedir}/tarantool/curl/curl.h
+%{_includedir}/tarantool/curl/curlver.h
+%{_includedir}/tarantool/curl/easy.h
+%{_includedir}/tarantool/curl/mprintf.h
+%{_includedir}/tarantool/curl/multi.h
+%{_includedir}/tarantool/curl/stdcheaders.h
+%{_includedir}/tarantool/curl/system.h
+%{_includedir}/tarantool/curl/typecheck-gcc.h
+%{_includedir}/tarantool/curl/urlapi.h
%changelog
* Tue Sep 12 2017 Roman Tsisyk <roman at tarantool.org> 1.7.5.46-1
--
2.24.3 (Apple Git-128)
More information about the Tarantool-patches
mailing list