From 6f7b47d0f550001634c7944b99c402dd5506f4fb Mon Sep 17 00:00:00 2001 From: "Dougal J. Sutherland" Date: Mon, 11 Sep 2017 16:11:05 +0100 Subject: [PATCH] change static lib output name on windows --- CMakeLists.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 3f534b1..35334c5 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -106,6 +106,8 @@ set_target_properties(snappy target_compile_definitions(snappy PRIVATE -DHAVE_CONFIG_H) if(BUILD_SHARED_LIBS) set_target_properties(snappy PROPERTIES WINDOWS_EXPORT_ALL_SYMBOLS ON) +elseif(MSVC) + set_target_properties(snappy PROPERTIES OUTPUT_NAME snappy_static) endif(BUILD_SHARED_LIBS) if(SNAPPY_BUILD_TESTS) -- 1.9.1