forked from xmake-io/xmake-repo
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
30 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
diff --git a/lib/CMakeLists.txt b/lib/CMakeLists.txt | ||
index b46da55..07ec28e 100644 | ||
--- a/lib/CMakeLists.txt | ||
+++ b/lib/CMakeLists.txt | ||
@@ -60,7 +60,6 @@ set(nghttp3_SOURCES | ||
nghttp3_opl.c | ||
nghttp3_objalloc.c | ||
nghttp3_unreachable.c | ||
- sfparse/sfparse.c | ||
) | ||
|
||
set(NGHTTP3_GENERATED_DIR "${CMAKE_CURRENT_BINARY_DIR}/generated") | ||
@@ -85,6 +84,7 @@ install( | ||
# Public shared library | ||
if(ENABLE_SHARED_LIB) | ||
add_library(nghttp3 SHARED ${nghttp3_SOURCES}) | ||
+ target_link_libraries(nghttp3 sfparse) | ||
set_target_properties(nghttp3 PROPERTIES | ||
COMPILE_FLAGS "${WARNCFLAGS}" | ||
VERSION ${LT_VERSION} SOVERSION ${LT_SOVERSION} | ||
@@ -103,6 +103,7 @@ endif() | ||
if(ENABLE_STATIC_LIB) | ||
# Public static library | ||
add_library(nghttp3_static STATIC ${nghttp3_SOURCES}) | ||
+ target_link_libraries(nghttp3_static sfparse) | ||
set_target_properties(nghttp3_static PROPERTIES | ||
COMPILE_FLAGS "${WARNCFLAGS}" | ||
VERSION ${LT_VERSION} SOVERSION ${LT_SOVERSION} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters