Skip to content

Commit 09c5ecd

Browse files
skoehlercdunn2001
authored andcommitted
only append _static suffix for microsoft toolchains
1 parent fda274d commit 09c5ecd

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/lib_json/CMakeLists.txt

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,11 @@ if(BUILD_STATIC_LIBS)
156156

157157
# avoid name clashes on windows as the shared import lib is alse named jsoncpp.lib
158158
if(NOT DEFINED STATIC_SUFFIX AND BUILD_SHARED_LIBS)
159-
set(STATIC_SUFFIX "_static")
159+
if (MSVC)
160+
set(STATIC_SUFFIX "_static")
161+
else()
162+
set(STATIC_SUFFIX "")
163+
endif()
160164
endif()
161165

162166
set_target_properties(${STATIC_LIB} PROPERTIES

0 commit comments

Comments
 (0)