Fix compile on windows with clang

This commit is contained in:
Zink Pavel 2023-04-03 21:41:44 +07:00 committed by Pavel Zink
parent 69098a18b9
commit 2d6368bb6c

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 # 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(NOT DEFINED STATIC_SUFFIX AND BUILD_SHARED_LIBS)
if (MSVC) if (WIN32)
set(STATIC_SUFFIX "_static") set(STATIC_SUFFIX "_static")
else() else()
set(STATIC_SUFFIX "") set(STATIC_SUFFIX "")