mirror of
https://github.com/json-c/json-c.git
synced 2026-04-11 16:29: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
|
# rename the static library
|
||||||
|
if (NOT MSVC)
|
||||||
set_target_properties(${STATIC_LIB} PROPERTIES
|
set_target_properties(${STATIC_LIB} PROPERTIES
|
||||||
OUTPUT_NAME ${PROJECT_NAME}
|
OUTPUT_NAME ${PROJECT_NAME}
|
||||||
)
|
)
|
||||||
|
endif()
|
||||||
list(APPEND CMAKE_TARGETS ${STATIC_LIB})
|
list(APPEND CMAKE_TARGETS ${STATIC_LIB})
|
||||||
endif ()
|
endif ()
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user