Skip to content

Commit 06742d6

Browse files
committed
Issue json-c#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.
1 parent a59d5ac commit 06742d6

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

CMakeLists.txt

+2
Original file line numberDiff line numberDiff line change
@@ -410,9 +410,11 @@ if (BUILD_STATIC_LIBS AND BUILD_SHARED_LIBS)
410410
)
411411

412412
# rename the static library
413+
if (NOT MSVC)
413414
set_target_properties(${STATIC_LIB} PROPERTIES
414415
OUTPUT_NAME ${PROJECT_NAME}
415416
)
417+
endif()
416418
list(APPEND CMAKE_TARGETS ${STATIC_LIB})
417419
endif ()
418420

0 commit comments

Comments
 (0)