mirror of
https://github.com/google/sandboxed-api.git
synced 2024-03-22 13:11:30 +08:00
Drop Uriparser CMAKE patch
Upstream fixed the issue with object visiblity in static version
of library. [1]
[1] a259209a57
This commit is contained in:
parent
dedcdba6ee
commit
6fa842476b
|
@ -27,14 +27,12 @@ if(NOT TARGET sapi::sapi)
|
|||
endif()
|
||||
|
||||
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_TESTS OFF CACHE BOOL "" FORCE)
|
||||
set(URIPARSER_BUILD_TOOLS OFF CACHE BOOL "" FORCE)
|
||||
FetchContent_Declare(uriparser
|
||||
GIT_REPOSITORY https://github.com/uriparser/uriparser
|
||||
GIT_TAG e0dc98b767aadb86c6510c1b25e575084eeb803c
|
||||
PATCH_COMMAND patch < "${CMAKE_SOURCE_DIR}/patches/uriparser.cmake.patch"
|
||||
GIT_TAG a259209a57f7123d4bc422336ce0d420d41f4f5e
|
||||
)
|
||||
FetchContent_MakeAvailable(uriparser)
|
||||
|
||||
|
|
|
@ -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
|
Loading…
Reference in New Issue
Block a user