Browse Source

Resolve windows name conflict

1. The windows dll will output the lib and dll, and rename the static
    lib will have conflict on windows.
2. Delete rename code to dismiss the conflict.
tags/json-c-0.14-20200419
Liang, Gao 7 years ago
parent
commit
0b3616d580
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      CMakeLists.txt

+ 2
- 0
CMakeLists.txt View File

@@ -114,7 +114,9 @@ add_library(json-c-static

set_property(TARGET json-c PROPERTY C_STANDARD 99)
set_property(TARGET json-c-static PROPERTY C_STANDARD 99)
if (NOT MSVC)
set_target_properties(json-c-static PROPERTIES OUTPUT_NAME json-c)
endif()

install(TARGETS json-c json-c-static
RUNTIME DESTINATION bin


Loading…
Cancel
Save