From 28b1f0b90f82cccb3f1977ed3b580d2c98421f94 Mon Sep 17 00:00:00 2001 From: William A Rowe Jr Date: Mon, 16 Sep 2019 08:48:17 -0700 Subject: [PATCH] Avoid filename collision of static and dynamic lib Renames the output of the ENABLE_STATIC_LIB library/archive output to nghttp2_static.lib/.a to avoid filenames colliding with the output name for ENABLE_SHARED_LIB library/archive, when both are enabled. Signed-off-by: William A Rowe Jr Signed-off-by: Yechiel Kalmenson --- lib/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/CMakeLists.txt b/lib/CMakeLists.txt index c27ee99b..4e3f5da0 100644 --- a/lib/CMakeLists.txt +++ b/lib/CMakeLists.txt @@ -62,7 +62,7 @@ if(HAVE_CUNIT OR ENABLE_STATIC_LIB) set_target_properties(nghttp2_static PROPERTIES COMPILE_FLAGS "${WARNCFLAGS}" VERSION ${LT_VERSION} SOVERSION ${LT_SOVERSION} - ARCHIVE_OUTPUT_NAME nghttp2 + ARCHIVE_OUTPUT_NAME nghttp2_static ) target_compile_definitions(nghttp2_static PUBLIC "-DNGHTTP2_STATICLIB") if(ENABLE_STATIC_LIB)