From a9e8cd5d9ac82b9e4385cdfdec0d0e231b22f662 Mon Sep 17 00:00:00 2001 From: Tal Regev Date: Fri, 30 Aug 2024 10:47:59 +0300 Subject: [PATCH] Fix include export --- lib/CMakeLists.txt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/CMakeLists.txt b/lib/CMakeLists.txt index 345c6da..8561856 100644 --- a/lib/CMakeLists.txt +++ b/lib/CMakeLists.txt @@ -91,6 +91,8 @@ if(ENABLE_SHARED_LIB) C_VISIBILITY_PRESET hidden ) + target_include_directories(nghttp3 INTERFACE $) + install(TARGETS nghttp3 EXPORT ${NGHTTP3_TARGETS_EXPORT_NAME} ARCHIVE DESTINATION "${CMAKE_INSTALL_LIBDIR}" @@ -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 $) + target_compile_definitions(nghttp3_static PUBLIC "-DNGHTTP3_STATICLIB") install(TARGETS nghttp3_static