Browse Source

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.

pull/603/head
Eric Haszlakiewicz Björn Esser 5 years ago
parent
commit
f0bbaec2d4
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      CMakeLists.txt

+ 2
- 0
CMakeLists.txt View File

@@ -402,9 +402,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 ()



Loading…
Cancel
Save