{"action":"opened","issue":{"url":"https://api.github.com/repos/dedok/tarantool-c/issues/2","labels_url":"https://api.github.com/repos/dedok/tarantool-c/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/dedok/tarantool-c/issues/2/comments","events_url":"https://api.github.com/repos/dedok/tarantool-c/issues/2/events","html_url":"https://github.com/dedok/tarantool-c/issues/2","id":67817325,"number":2,"title":"Yajl not optional in CMakeLists.txt","user":{"login":"dedok","id":1643154,"avatar_url":"https://avatars.githubusercontent.com/u/1643154?v=3","gravatar_id":"","url":"https://api.github.com/users/dedok","html_url":"https://github.com/dedok","followers_url":"https://api.github.com/users/dedok/followers","following_url":"https://api.github.com/users/dedok/following{/other_user}","gists_url":"https://api.github.com/users/dedok/gists{/gist_id}","starred_url":"https://api.github.com/users/dedok/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dedok/subscriptions","organizations_url":"https://api.github.com/users/dedok/orgs","repos_url":"https://api.github.com/users/dedok/repos","events_url":"https://api.github.com/users/dedok/events{/privacy}","received_events_url":"https://api.github.com/users/dedok/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-04-11T18:40:19Z","updated_at":"2015-04-11T18:40:19Z","closed_at":null,"body":"Tarantool protocol to JSON via Yajl is always enable which is wrong because Tarantool-c might be standalone solution for end users.\r\nSo Yajl transcode has to be made optional for Tarantool-c ( see CMake's Find{Path,Lib,Package} ).\r\n\r\nFor instance:\r\n\r\n1) User wish tp_transcode with Yajl,\r\n$> cmake -DTP_TC_YAJL=on . -- came _must_ search Yajl in system paths.\r\n$> cmake -DTP_TC_YAJL=on -DYAJL_ROOT=/custorm/yajl/dir -- cmake _must_ search Yajl in YAJL_ROOT path.\r\n\r\nAlso yajl _must_ exactly 2.0+ version.\r\n\r\n2) Common case, if Yajl in system paths then Tatantool-c has to be built within Yajl transcode support, otherwise w/o.\r\n$> cmake ."}}