Only MSVC have extra suffix for static lib

This commit is contained in:
Raed Rizqie 2024-11-10 23:12:58 +08:00 committed by GitHub
parent bd25fc5ea0
commit c59d81bf16
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -143,7 +143,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 (WIN32)
if (MSVC)
set(STATIC_SUFFIX "_static")
else()
set(STATIC_SUFFIX "")