Skip to content

Commit

Permalink
Merge remote-tracking branch 'upstream/pr/271' into pulls
Browse files Browse the repository at this point in the history
Handle alternate location for jsonc library
Grive#271
  • Loading branch information
mMerlin committed Apr 12, 2015
2 parents 233a9b3 + 4fb10d7 commit 9602c04
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions cmake/Modules/FindJSONC.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
# JSONC_INCLUDE_DIR - The JSON-C include directory.
# JSONC_LIBRARY - The JSON-C library to link against.

FIND_PATH(JSONC_INCLUDE_DIR json/json.h)
FIND_LIBRARY(JSONC_LIBRARY NAMES json)
FIND_PATH(JSONC_INCLUDE_DIR json.h PATH_SUFFIXES json json-c)
FIND_LIBRARY(JSONC_LIBRARY NAMES json json-c)

IF (JSONC_INCLUDE_DIR AND JSONC_LIBRARY)
SET(JSONC_FOUND TRUE)
Expand Down
1 change: 1 addition & 0 deletions libgrive/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ include_directories(
${libgrive_SOURCE_DIR}/test
${GDBM_INCLUDE_DIR}
${YAJL_INCLUDE_DIR}
${JSONC_INCLUDE_DIR}
${OPT_INCS}
)

Expand Down
4 changes: 2 additions & 2 deletions libgrive/src/protocol/Json.cc
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@
#pragma warning(push)
#pragma warning(disable: 4005)
#endif
#include <json/json_tokener.h>
#include <json/linkhash.h>
#include <json_tokener.h>
#include <linkhash.h>
#ifdef _MSC_VER
#pragma warning(pop)
#endif
Expand Down

0 comments on commit 9602c04

Please sign in to comment.