From c59d81bf167d68ca0c5f1e017fc6bb8a685c0c55 Mon Sep 17 00:00:00 2001 From: Raed Rizqie Date: Sun, 10 Nov 2024 23:12:58 +0800 Subject: [PATCH] Only MSVC have extra suffix for static lib --- src/lib_json/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib_json/CMakeLists.txt b/src/lib_json/CMakeLists.txt index 152635348..0f1dcae5d 100644 --- a/src/lib_json/CMakeLists.txt +++ b/src/lib_json/CMakeLists.txt @@ -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 "")