Skip to content

Commit 3df1f98

Browse files
committed
Explain why we're not setting the output name for static libraries when on Windows.
1 parent a056893 commit 3df1f98

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

CMakeLists.txt

+3
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,9 @@ add_library(json-c-static
121121
set_property(TARGET json-c PROPERTY C_STANDARD 99)
122122
set_property(TARGET json-c-static PROPERTY C_STANDARD 99)
123123
if (NOT MSVC)
124+
# Since MS Windows re-uses the .lib suffix for both static libraries
125+
# and the "import library" that's needed to actually link against a
126+
# dll, we can't use the same name for static and dynamic libs. :(
124127
set_target_properties(json-c-static PROPERTIES OUTPUT_NAME json-c)
125128
endif()
126129

0 commit comments

Comments
 (0)