From adead30747b398ea52abe6286c12164870816f2e Mon Sep 17 00:00:00 2001 From: Přemysl Janouch Date: Tue, 20 Jan 2015 07:40:46 +0100 Subject: Fix Debian build --- cmake/FindJsonGlib.cmake | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'cmake') diff --git a/cmake/FindJsonGlib.cmake b/cmake/FindJsonGlib.cmake index ab19c10..c279de1 100644 --- a/cmake/FindJsonGlib.cmake +++ b/cmake/FindJsonGlib.cmake @@ -36,8 +36,12 @@ find_path (JSON_GLIB_INCLUDE_DIR json-glib/json-glib.h find_path (JSON_GLIB_INCLUDE_DIR_GOBJECT glib-object.h PATH_SUFFIXES glib-2.0) +if (CMAKE_LIBRARY_ARCHITECTURE) + set (_json_glib_arch_dir /usr/lib/${CMAKE_LIBRARY_ARCHITECTURE}) +endif (CMAKE_LIBRARY_ARCHITECTURE) + find_path (JSON_GLIB_INCLUDE_DIR_GLIBCONFIG glibconfig.h - PATHS /usr/lib + PATHS ${_json_glib_arch_dir} /usr/lib PATH_SUFFIXES glib-2.0 glib-2.0/include) find_library (JSON_GLIB_LIBRARIES json-glib-1.0) -- cgit v1.2.3-70-g09d2