Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix include export #250

Merged
merged 1 commit into from
Aug 30, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions lib/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,8 @@ if(ENABLE_SHARED_LIB)
C_VISIBILITY_PRESET hidden
)

target_include_directories(nghttp3 INTERFACE $<INSTALL_INTERFACE:include>)

install(TARGETS nghttp3
EXPORT ${NGHTTP3_TARGETS_EXPORT_NAME}
ARCHIVE DESTINATION "${CMAKE_INSTALL_LIBDIR}"
Expand All @@ -106,6 +108,9 @@ if(ENABLE_STATIC_LIB)
VERSION ${LT_VERSION} SOVERSION ${LT_SOVERSION}
ARCHIVE_OUTPUT_NAME nghttp3${STATIC_LIB_SUFFIX}
)

target_include_directories(nghttp3_static INTERFACE $<INSTALL_INTERFACE:include>)

talregev marked this conversation as resolved.
Show resolved Hide resolved
target_compile_definitions(nghttp3_static PUBLIC "-DNGHTTP3_STATICLIB")

install(TARGETS nghttp3_static
Expand Down
Loading