Skip to content

Commit 4f43a07

Browse files
committed
Issue json-c#598: avoid building static libraries twice.
1 parent 519dfe1 commit 4f43a07

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

CMakeLists.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -402,7 +402,7 @@ target_include_directories(${PROJECT_NAME}
402402
)
403403

404404
# Allow to build static and shared libraries at the same time
405-
if (BUILD_STATIC_LIBS)
405+
if (BUILD_STATIC_LIBS AND BUILD_SHARED_LIBS)
406406
set(STATIC_LIB ${PROJECT_NAME}-static)
407407
add_library(${STATIC_LIB} STATIC
408408
${JSON_C_SOURCES}

0 commit comments

Comments
 (0)