Browse Source

Issue #598: avoid building static libraries twice.

pull/603/head
Eric Haszlakiewicz Björn Esser 5 years ago
parent
commit
b4c0c8d027
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      CMakeLists.txt

+ 1
- 1
CMakeLists.txt View File

@@ -394,7 +394,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}


Loading…
Cancel
Save