aboutsummaryrefslogtreecommitdiff
path: root/cmake/FindJsonC.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'cmake/FindJsonC.cmake')
-rw-r--r--cmake/FindJsonC.cmake4
1 files changed, 4 insertions, 0 deletions
diff --git a/cmake/FindJsonC.cmake b/cmake/FindJsonC.cmake
index cada971..f3c90df 100644
--- a/cmake/FindJsonC.cmake
+++ b/cmake/FindJsonC.cmake
@@ -28,6 +28,7 @@ find_library(JSONC_LIB
ENV jsoncPath${_lib_suffix}
ENV jsoncPath
${_JSONC_LIBRARY_DIRS}
+ ${_JSONC_STATIC_LIBRARY_DIRS}
PATHS
/usr/lib /usr/local/lib)
@@ -38,4 +39,7 @@ mark_as_advanced(JSONC_INC JSONC_LIB)
if(JSONC_FOUND)
set(JSONC_INCLUDE_DIRS ${JSONC_INC})
set(JSONC_LIBRARIES ${JSONC_LIB})
+ if (BUILD_STATIC)
+ set(JSONC_LIBRARIES ${JSONC_LIBRARIES} ${_JSONC_STATIC_LIBRARY_DIRS})
+ endif()
endif() \ No newline at end of file