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.

This commit is contained in:
Eric Haszlakiewicz
2020-05-10 03:58:51 +00:00
parent a59d5acfab
commit 06742d6277

View File

@@ -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 ()