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 519dfe1 commit 4f43a07Copy full SHA for 4f43a07
CMakeLists.txt
@@ -402,7 +402,7 @@ target_include_directories(${PROJECT_NAME}
402
)
403
404
# Allow to build static and shared libraries at the same time
405
-if (BUILD_STATIC_LIBS)
+if (BUILD_STATIC_LIBS AND BUILD_SHARED_LIBS)
406
set(STATIC_LIB ${PROJECT_NAME}-static)
407
add_library(${STATIC_LIB} STATIC
408
${JSON_C_SOURCES}
0 commit comments