Fix compile on windows with clang (#1480)

Co-authored-by: Jordan Bayles <bayles.jordan@gmail.com>
This commit is contained in:
Pavel Tsynk 2024-09-10 08:50:38 +07:00 committed by GitHub
parent c04c0c2131
commit 483f1c310e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -144,7 +144,7 @@ if(BUILD_STATIC_LIBS)
# avoid name clashes on windows as the shared import lib is also named jsoncpp.lib
if(NOT DEFINED STATIC_SUFFIX AND BUILD_SHARED_LIBS)
if (MSVC)
if (WIN32)
set(STATIC_SUFFIX "_static")
else()
set(STATIC_SUFFIX "")