Drop Uriparser CMAKE patch

Upstream fixed the issue with object visiblity in static version
of library. [1]

[1] a259209a57
This commit is contained in:
Mariusz Zaborski 2022-03-16 19:21:34 -04:00
parent dedcdba6ee
commit 6fa842476b
2 changed files with 1 additions and 26 deletions

View File

@ -27,14 +27,12 @@ if(NOT TARGET sapi::sapi)
endif() endif()
set(BUILD_SHARED_LIBS OFF CACHE BOOL "" FORCE) set(BUILD_SHARED_LIBS OFF CACHE BOOL "" FORCE)
set(HIDE_SYMBOLS OFF CACHE BOOL "" FORCE)
set(URIPARSER_BUILD_DOCS OFF CACHE BOOL "" FORCE) set(URIPARSER_BUILD_DOCS OFF CACHE BOOL "" FORCE)
set(URIPARSER_BUILD_TESTS OFF CACHE BOOL "" FORCE) set(URIPARSER_BUILD_TESTS OFF CACHE BOOL "" FORCE)
set(URIPARSER_BUILD_TOOLS OFF CACHE BOOL "" FORCE) set(URIPARSER_BUILD_TOOLS OFF CACHE BOOL "" FORCE)
FetchContent_Declare(uriparser FetchContent_Declare(uriparser
GIT_REPOSITORY https://github.com/uriparser/uriparser GIT_REPOSITORY https://github.com/uriparser/uriparser
GIT_TAG e0dc98b767aadb86c6510c1b25e575084eeb803c GIT_TAG a259209a57f7123d4bc422336ce0d420d41f4f5e
PATCH_COMMAND patch < "${CMAKE_SOURCE_DIR}/patches/uriparser.cmake.patch"
) )
FetchContent_MakeAvailable(uriparser) FetchContent_MakeAvailable(uriparser)

View File

@ -1,23 +0,0 @@
--- CMakeLists.txt
+++ CMakeLists.txt
@@ -59,6 +59,7 @@ include(GNUInstallDirs)
# Configuration
#
option(BUILD_SHARED_LIBS "Build shared libraries (rather than static ones)" ON)
+option(HIDE_SYMBOLS "Build a libraries with hidden symbols unless they're specifically exported" ON)
option(URIPARSER_BUILD_DOCS "Build API documentation (requires Doxygen, Graphviz, and (optional) Qt's qhelpgenerator)" ON)
option(URIPARSER_BUILD_TESTS "Build test suite (requires GTest >=1.8.0)" ON)
option(URIPARSER_BUILD_TOOLS "Build tools (e.g. CLI \"uriparse\")" ON)
@@ -104,10 +105,12 @@ endmacro()
#
set(URIPARSER_EXTRA_COMPILE_FLAGS)
+if(HIDE_SYMBOLS)
check_c_compiler_flag("-fvisibility=hidden" URIPARSER_COMPILER_SUPPORTS_VISIBILITY)
if(URIPARSER_COMPILER_SUPPORTS_VISIBILITY)
set(URIPARSER_EXTRA_COMPILE_FLAGS "${URIPARSER_EXTRA_COMPILE_FLAGS} -fvisibility=hidden")
endif()
+endif(HIDE_SYMBOLS)
#
# config.h