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

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 "")