From: Eric Haszlakiewicz Date: Sun, 10 May 2020 03:58:51 +0000 (+0000) Subject: Issue #600: don't rename the static library on Windows, it _needs_ to have a differen... X-Git-Tag: json-c-0.15-20200726~54 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=06742d6277986c9332917ac4bc18a6d526d9f004;p=json-c 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. --- diff --git a/CMakeLists.txt b/CMakeLists.txt index b5dfc32..254d324 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -410,9 +410,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 ()