{"action":"created","issue":{"url":"https://api.github.com/repos/Homebrew/homebrew/issues/41647","labels_url":"https://api.github.com/repos/Homebrew/homebrew/issues/41647/labels{/name}","comments_url":"https://api.github.com/repos/Homebrew/homebrew/issues/41647/comments","events_url":"https://api.github.com/repos/Homebrew/homebrew/issues/41647/events","html_url":"https://github.com/Homebrew/homebrew/issues/41647","id":94626848,"number":41647,"title":"Strange behavior of cmake in formula","user":{"login":"xionglingfeng","id":907251,"avatar_url":"https://avatars.githubusercontent.com/u/907251?v=3","gravatar_id":"","url":"https://api.github.com/users/xionglingfeng","html_url":"https://github.com/xionglingfeng","followers_url":"https://api.github.com/users/xionglingfeng/followers","following_url":"https://api.github.com/users/xionglingfeng/following{/other_user}","gists_url":"https://api.github.com/users/xionglingfeng/gists{/gist_id}","starred_url":"https://api.github.com/users/xionglingfeng/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xionglingfeng/subscriptions","organizations_url":"https://api.github.com/users/xionglingfeng/orgs","repos_url":"https://api.github.com/users/xionglingfeng/repos","events_url":"https://api.github.com/users/xionglingfeng/events{/privacy}","received_events_url":"https://api.github.com/users/xionglingfeng/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Homebrew/homebrew/labels/needs%20response","name":"needs response","color":"c7def8"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":9,"created_at":"2015-07-13T03:05:01Z","updated_at":"2015-07-23T05:18:24Z","closed_at":"2015-07-23T05:18:24Z","body":"Hi all, I am trying to build a formula of `libfreenect2`. The package depends on `jpeg-turbo` and `libusb-1.0` thus I added these lines in my formula\r\n\r\n      depends_on \"cmake\" => :build\r\n      depends_on \"libusb\"\r\n      depends_on \"jpeg-turbo\"\r\n\r\nI confirmed the depends are correctly installed by `brew install libfreenect2.rb` automatically.\r\nHowever, `cmake` keep complaining about\r\n\r\n    -- Found PkgConfig: /Volumes/Application/homebrew/bin/pkg-config (found version \"0.28\") \r\n    -- checking for module 'libusb-1.0'\r\n    --   package 'libusb-1.0' not found\r\n\r\nThe most funny part is, when I build the package without `homebrew`:\r\n\r\n    -- Found PkgConfig: /Volumes/Application/homebrew/bin/pkg-config (found version \"0.28\") \r\n    -- checking for module 'libusb-1.0'\r\n    --   found libusb-1.0, version 1.0.19\r\n\r\nI am totally confused why this happened here... any suggestions?\r\n"},"comment":{"url":"https://api.github.com/repos/Homebrew/homebrew/issues/comments/123969463","html_url":"https://github.com/Homebrew/homebrew/issues/41647#issuecomment-123969463","issue_url":"https://api.github.com/repos/Homebrew/homebrew/issues/41647","id":123969463,"user":{"login":"DomT4","id":6998367,"avatar_url":"https://avatars.githubusercontent.com/u/6998367?v=3","gravatar_id":"","url":"https://api.github.com/users/DomT4","html_url":"https://github.com/DomT4","followers_url":"https://api.github.com/users/DomT4/followers","following_url":"https://api.github.com/users/DomT4/following{/other_user}","gists_url":"https://api.github.com/users/DomT4/gists{/gist_id}","starred_url":"https://api.github.com/users/DomT4/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DomT4/subscriptions","organizations_url":"https://api.github.com/users/DomT4/orgs","repos_url":"https://api.github.com/users/DomT4/repos","events_url":"https://api.github.com/users/DomT4/events{/privacy}","received_events_url":"https://api.github.com/users/DomT4/received_events","type":"User","site_admin":false},"created_at":"2015-07-23T05:18:24Z","updated_at":"2015-07-23T05:18:24Z","body":"Since you've filed this at `head-only` now let's do the debugging over there."}}