Skip to content

Commit b51eb7d

Browse files
committed
Add a new CMake flag to make backwards compatible
1 parent d80c524 commit b51eb7d

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

CMakeLists.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ option(BUILD_JNI "Build C++ wrapper for JNI to expose the functionality to Java/
1414
option(BUILD_STATIC "Build with static linkage" OFF)
1515
option(ADD_MUCLIBC "Add -muclibc c flag" OFF)
1616
option(BUILD_DEPENDENCIES "Whether or not to build depending libraries from source" ON)
17+
option(BUILD_PRODUCER_C "Whether or not to build KVS Producer C library from source" ON)
1718
option(BUILD_OPENSSL_PLATFORM "If buildng OpenSSL what is the target platform" OFF)
1819
option(BUILD_LOG4CPLUS_HOST "Specify host-name for log4cplus for cross-compilation" OFF)
1920

@@ -100,7 +101,7 @@ set(BUILD_COMMON_CURL
100101
find_package(Threads)
101102
find_package(PkgConfig REQUIRED)
102103

103-
if(BUILD_DEPENDENCIES)
104+
if (BUILD_PRODUCER_C)
104105
set(DEPENDENCY_DOWNLOAD_PATH ${CMAKE_CURRENT_SOURCE_DIR}/dependency)
105106
if(NOT EXISTS ${DEPENDENCY_DOWNLOAD_PATH})
106107
file(MAKE_DIRECTORY ${DEPENDENCY_DOWNLOAD_PATH})

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,7 @@ You can pass the following options to `cmake ..`.
8585
* `-DBUILD_GSTREAMER_PLUGIN` -- Build kvssink GStreamer plugin
8686
* `-DBUILD_JNI` -- Build C++ wrapper for JNI to expose the functionality to Java/Android
8787
* `-DBUILD_DEPENDENCIES` -- Build depending libraries from source
88+
* `-DBUILD_PRODUCER_C` -- Build KVS Producer C library from source. Default is ON.
8889
* `-DBUILD_TEST=TRUE` -- Build unit/integration tests, may be useful for confirm support for your device. `./tst/producerTest`
8990
* `-DCODE_COVERAGE` -- Enable coverage reporting
9091
* `-DCOMPILER_WARNINGS` -- Enable all compiler warnings

0 commit comments

Comments
 (0)