From f0bbaec2d4e1c64bcc2b4e9880d15ccb46233fc0 Mon Sep 17 00:00:00 2001 From: Eric Haszlakiewicz Date: Sun, 10 May 2020 03:58:51 +0000 Subject: [PATCH] Issue #600: don't rename the static library on Windows, it _needs_ to have a different name because the dll build also creates a "json-c.lib" file. --- CMakeLists.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 67c2ae6..b980a5a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -402,9 +402,11 @@ if (BUILD_STATIC_LIBS AND BUILD_SHARED_LIBS) ) # rename the static library + if (NOT MSVC) set_target_properties(${STATIC_LIB} PROPERTIES OUTPUT_NAME ${PROJECT_NAME} ) + endif() list(APPEND CMAKE_TARGETS ${STATIC_LIB}) endif ()