CPP Client - Adding LOG4CXX_USE_DYNAMIC_LIBS to CMake.
@@ -74,6 +74,9 @@ if (LINK_STATIC)
find_library(LIB_ZSTD NAMES libzstd.a)
if (USE_LOG4CXX)
+ if (LOG4CXX_USE_DYNAMIC_LIBS)
+ find_library(LOG4CXX_LIBRARY_PATH log4cxx)
+ elseif (LOG4CXX_USE_DYNAMIC_LIBS)
find_library(LOG4CXX_LIBRARY_PATH NAMES liblog4cxx.a)
# Libraries needed by log4cxx to link statically with
@@ -85,6 +88,7 @@ if (LINK_STATIC)
else ()
set(ICONV_LIBRARY_PATH )
endif (APPLE)
+ endif (LOG4CXX_USE_DYNAMIC_LIBS)
endif (USE_LOG4CXX)
else()
# Link to shared libraries
