Skip to content

Commit

Permalink
Merge pull request #250 from talregev/TalR/fix_include_export
Browse files Browse the repository at this point in the history
Fix include export
  • Loading branch information
tatsuhiro-t authored Aug 30, 2024
2 parents 32a66a3 + a9e8cd5 commit e9f34d9
Showing 1 changed file with 5 additions and 0 deletions.
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>)

target_compile_definitions(nghttp3_static PUBLIC "-DNGHTTP3_STATICLIB")

install(TARGETS nghttp3_static
Expand Down

0 comments on commit e9f34d9

Please sign in to comment.