Browse Source

Explain why we're not setting the output name for static libraries when on Windows.

tags/json-c-0.14-20200419
Eric Haszlakiewicz 7 years ago
parent
commit
3df1f98b4a
1 changed files with 3 additions and 0 deletions
  1. +3
    -0
      CMakeLists.txt

+ 3
- 0
CMakeLists.txt View File

@@ -121,6 +121,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)
# Since MS Windows re-uses the .lib suffix for both static libraries
# and the "import library" that's needed to actually link against a
# dll, we can't use the same name for static and dynamic libs. :(
set_target_properties(json-c-static PROPERTIES OUTPUT_NAME json-c)
endif()



Loading…
Cancel
Save