]> granicus.if.org Git - json-c/commitdiff
Issue #600: don't rename the static library on Windows, it _needs_ to have a differen...
authorEric Haszlakiewicz <erh+git@nimenees.com>
Sun, 10 May 2020 03:58:51 +0000 (03:58 +0000)
committerEric Haszlakiewicz <erh+git@nimenees.com>
Sun, 10 May 2020 03:58:51 +0000 (03:58 +0000)
CMakeLists.txt

index b5dfc32554809c4760c1a3c5c001369f5db4c7f2..254d324c94c479f320457ef3ff4ea63080ee1f8e 100644 (file)
@@ -410,9 +410,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 ()