Skip to content

Commit

Permalink
Fix include export
Browse files Browse the repository at this point in the history
  • Loading branch information
talregev committed Aug 30, 2024
1 parent 32a66a3 commit 4ae6c2c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 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 @@ -108,6 +110,8 @@ if(ENABLE_STATIC_LIB)
)
target_compile_definitions(nghttp3_static PUBLIC "-DNGHTTP3_STATICLIB")

target_include_directories(nghttp3_static INTERFACE $<INSTALL_INTERFACE:include>)

install(TARGETS nghttp3_static
EXPORT ${NGHTTP3_TARGETS_EXPORT_NAME}
DESTINATION "${CMAKE_INSTALL_LIBDIR}")
Expand Down

0 comments on commit 4ae6c2c

Please sign in to comment.