Skip to content

Commit

Permalink
Issue #598: avoid building static libraries twice.
Browse files Browse the repository at this point in the history
  • Loading branch information
hawicz committed May 10, 2020
1 parent 519dfe1 commit 4f43a07
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -402,7 +402,7 @@ target_include_directories(${PROJECT_NAME}
)

# Allow to build static and shared libraries at the same time
if (BUILD_STATIC_LIBS)
if (BUILD_STATIC_LIBS AND BUILD_SHARED_LIBS)
set(STATIC_LIB ${PROJECT_NAME}-static)
add_library(${STATIC_LIB} STATIC
${JSON_C_SOURCES}
Expand Down

0 comments on commit 4f43a07

Please sign in to comment.