Issue #598: avoid building static libraries twice.

This commit is contained in:
Eric Haszlakiewicz
2020-05-10 03:48:45 +00:00
parent 519dfe1591
commit 4f43a077a4

View File

@@ -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}