Skip to content

Commit 3f86349

Browse files
mmuetzelbaylesj
andauthored
Fix name of static library when targeting MinGW. (#1579)
Co-authored-by: Jordan Bayles <[email protected]>
1 parent 2b3815c commit 3f86349

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: src/lib_json/CMakeLists.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ if(BUILD_STATIC_LIBS)
143143

144144
# avoid name clashes on windows as the shared import lib is also named jsoncpp.lib
145145
if(NOT DEFINED STATIC_SUFFIX AND BUILD_SHARED_LIBS)
146-
if (WIN32)
146+
if (MSVC OR ("${CMAKE_C_SIMULATE_ID}" STREQUAL "MSVC"))
147147
set(STATIC_SUFFIX "_static")
148148
else()
149149
set(STATIC_SUFFIX "")

0 commit comments

Comments
 (0)