mirror of
https://github.com/json-c/json-c.git
synced 2026-03-13 18:19:06 +08:00
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:
@@ -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 ()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user