We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2b3815c commit 3f86349Copy full SHA for 3f86349
src/lib_json/CMakeLists.txt
@@ -143,7 +143,7 @@ if(BUILD_STATIC_LIBS)
143
144
# avoid name clashes on windows as the shared import lib is also named jsoncpp.lib
145
if(NOT DEFINED STATIC_SUFFIX AND BUILD_SHARED_LIBS)
146
- if (WIN32)
+ if (MSVC OR ("${CMAKE_C_SIMULATE_ID}" STREQUAL "MSVC"))
147
set(STATIC_SUFFIX "_static")
148
else()
149
set(STATIC_SUFFIX "")
0 commit comments