Explicitly setting the version of json-c required

to 0.12.1. This is needed because the development

 version breaks the existing API of json_object_array_length()

 by moving the return from int to size_t.

This would fix #1355
master
Marius Orcsik 7 years ago
parent d75ee3f9ce
commit 69e9b1386f
No known key found for this signature in database
GPG Key ID: 889CE8E4FB2D877A

@ -8,10 +8,22 @@
# #
find_package(PkgConfig) find_package(PkgConfig)
pkg_check_modules(PC_JSONC QUIET JSONC)
if (JsonC_FIND_REQUIRED)
set(_pkgconfig_REQUIRED "REQUIRED")
else()
set(_pkgconfig_REQUIRED "")
endif()
if(JsonC_FIND_VERSION)
pkg_check_modules(PC_JSONC ${_pkgconfig_REQUIRED} json-c=${JsonC_FIND_VERSION})
else()
pkg_check_modules(PC_JSONC ${_pkgconfig_REQUIRED} json-c)
endif()
find_path(JSONC_INCLUDE_DIRS NAMES json-c/json.h HINTS ${PC_JSONC_INCLUDE_DIRS}) find_path(JSONC_INCLUDE_DIRS NAMES json-c/json.h HINTS ${PC_JSONC_INCLUDE_DIRS})
find_library(JSONC_LIBRARIES NAMES json-c HINTS ${PC_JSONC_LIBRARY_DIRS}) find_library(JSONC_LIBRARIES NAMES json-c HINTS ${PC_JSONC_LIBRARY_DIRS})
include(FindPackageHandleStandardArgs) include(FindPackageHandleStandardArgs)
find_package_handle_standard_args(JSONC DEFAULT_MSG JSONC_LIBRARIES JSONC_INCLUDE_DIRS) find_package_handle_standard_args(JSONC DEFAULT_MSG JSONC_LIBRARIES JSONC_INCLUDE_DIRS)
mark_as_advanced(JSONC_LIBRARIES JSONC_INCLUDE_DIRS) mark_as_advanced(JSONC_LIBRARIES JSONC_INCLUDE_DIRS)

@ -48,7 +48,7 @@ if (LD_LIBRARY_PATH)
add_definitions(-D_LD_LIBRARY_PATH="${LD_LIBRARY_PATH}") add_definitions(-D_LD_LIBRARY_PATH="${LD_LIBRARY_PATH}")
endif() endif()
find_package(JsonC REQUIRED) find_package(JsonC 0.12.1 REQUIRED)
find_package(PCRE REQUIRED) find_package(PCRE REQUIRED)
find_package(WLC REQUIRED) find_package(WLC REQUIRED)
find_package(Wayland REQUIRED) find_package(Wayland REQUIRED)

@ -60,7 +60,7 @@ Abhängigkeiten:
* libcap * libcap
* asciidoc * asciidoc
* pcre * pcre
* json-c * json-c <= 0.12.1
* pango * pango
* cairo * cairo
* gdk-pixbuf2 * * gdk-pixbuf2 *

@ -53,7 +53,7 @@ To username μου στο Freenode είναι kon14 και θα με βρείτ
* libcap * libcap
* asciidoc * asciidoc
* pcre * pcre
* json-c * json-c <= 0.12.1
* pango * pango
* cairo * cairo
* gdk-pixbuf2 * * gdk-pixbuf2 *

@ -55,7 +55,7 @@ Installez les dépendances :
* libcap * libcap
* asciidoc * asciidoc
* pcre * pcre
* json-c * json-c <= 0.12.1
* pango * pango
* cairo * cairo
* gdk-pixbuf2 * * gdk-pixbuf2 *

@ -56,7 +56,7 @@ Installa queste dipendenze:
* libcap * libcap
* asciidoc * asciidoc
* pcre * pcre
* json-c * json-c <= 0.12.1
* pango * pango
* cairo * cairo
* gdk-pixbuf2 * * gdk-pixbuf2 *

@ -49,7 +49,7 @@ Swayは沢山のディストリビューションで提供されています。"
* libcap * libcap
* asciidoc * asciidoc
* pcre * pcre
* json-c * json-c <= 0.12.1
* pango * pango
* cairo * cairo
* gdk-pixbuf2 * * gdk-pixbuf2 *

@ -61,7 +61,7 @@ Install dependencies:
* libcap * libcap
* asciidoc * asciidoc
* pcre * pcre
* json-c * json-c <= 0.12.1
* pango * pango
* cairo * cairo
* gdk-pixbuf2 * * gdk-pixbuf2 *

@ -62,7 +62,7 @@ Antes de iniciar a compilação, instale as dependências:
* libcap * libcap
* asciidoc * asciidoc
* pcre * pcre
* json-c * json-c <= 0.12.1
* pango * pango
* cairo * cairo
* gdk-pixbuf2 * * gdk-pixbuf2 *

@ -55,7 +55,7 @@ Sway доступен во многих дистрибутивах и наход
* libcap * libcap
* asciidoc * asciidoc
* pcre * pcre
* json-c * json-c <= 0.12.1
* pango * pango
* cairo * cairo
* gdk-pixbuf2 * * gdk-pixbuf2 *

@ -62,7 +62,7 @@ Sway доступний у багатьох дистрибутивах Linux (а
* libcap * libcap
* asciidoc * asciidoc
* pcre * pcre
* json-c * json-c <= 0.12.1
* pango * pango
* cairo * cairo
* gdk-pixbuf2 * * gdk-pixbuf2 *

Loading…
Cancel
Save