Skip to content

Commit

Permalink
Fix name of static library when targeting MinGW.
Browse files Browse the repository at this point in the history
  • Loading branch information
mmuetzel committed Nov 19, 2024
1 parent bd25fc5 commit 62ea371
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib_json/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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 OR ("${CMAKE_C_SIMULATE_ID}" STREQUAL "MSVC"))
set(STATIC_SUFFIX "_static")
else()
set(STATIC_SUFFIX "")
Expand Down

0 comments on commit 62ea371

Please sign in to comment.