]> granicus.if.org Git - json-c/commitdiff
Explain why we're not setting the output name for static libraries when on Windows.
authorEric Haszlakiewicz <erh+git@nimenees.com>
Sun, 24 Jun 2018 02:10:55 +0000 (22:10 -0400)
committerEric Haszlakiewicz <erh+git@nimenees.com>
Sun, 24 Jun 2018 02:10:55 +0000 (22:10 -0400)
CMakeLists.txt

index f64e371fe4f54446f08323ad5afc16ef8cee82be..f4f445a71c6e37bcb0e9b5f6112fca27ca26da1f 100644 (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()