{"action":"created","issue":{"url":"https://api.github.com/repos/ruslo/hunter/issues/123","repository_url":"https://api.github.com/repos/ruslo/hunter","labels_url":"https://api.github.com/repos/ruslo/hunter/issues/123/labels{/name}","comments_url":"https://api.github.com/repos/ruslo/hunter/issues/123/comments","events_url":"https://api.github.com/repos/ruslo/hunter/issues/123/events","html_url":"https://github.com/ruslo/hunter/issues/123","id":71577154,"number":123,"title":"Optimize HUNTER_BINARY_DIR layout","user":{"login":"ruslo","id":4346993,"avatar_url":"https://avatars.githubusercontent.com/u/4346993?v=3","gravatar_id":"","url":"https://api.github.com/users/ruslo","html_url":"https://github.com/ruslo","followers_url":"https://api.github.com/users/ruslo/followers","following_url":"https://api.github.com/users/ruslo/following{/other_user}","gists_url":"https://api.github.com/users/ruslo/gists{/gist_id}","starred_url":"https://api.github.com/users/ruslo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ruslo/subscriptions","organizations_url":"https://api.github.com/users/ruslo/orgs","repos_url":"https://api.github.com/users/ruslo/repos","events_url":"https://api.github.com/users/ruslo/events{/privacy}","received_events_url":"https://api.github.com/users/ruslo/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/ruslo/hunter/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-04-28T12:31:46Z","updated_at":"2016-06-19T21:31:14Z","closed_at":null,"body":"For now to avoid [path too long](https://github.com/ruslo/hunter/wiki/error.external.build.failed#windows) error external directory with short path can be specified: `HUNTER_BINARY_DIR`. But looks like Visual Studio 8 2005 use relative paths for sources, so in fact it becomes even more longer:\r\n* Path to sources: `/<hunter-root>/_Base/<hunter-id>/<config-id>/<toolchain-id>/Build/<package>/Source`\r\n* Path to build: `/<hunter-binary-dir>/<package>/Build`\r\n* Relative: `/../../../../` (level up to `<hunter-root>`) + `<hunter-binary-dir>/<package>/Build`\r\n\r\nPossible solution is to unpack sources to `HUNTER_BINARY_DIR` too:\r\n* Path to sources: `/<hunter-binary-dir>/<package>/Source`\r\n* Path to build: `/<hunter-binary-dir>/<package>/Build`\r\n\r\nNote: how to deal with \"unpack-only\" packages from `/<hunter-root>/_Base/Download/<package>/Unpacked`?\r\n\r\nTest it on visual studio 8 2005 with winsparkle project. See bug: https://github.com/ruslo/hunter/issues/121\r\n\r\n<bountysource-plugin>\r\n---\r\nWant to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/12375553-optimize-hunter_binary_dir-layout?utm_campaign=plugin&utm_content=tracker%2F1032790&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F1032790&utm_medium=issues&utm_source=github).\r\n</bountysource-plugin>"},"comment":{"url":"https://api.github.com/repos/ruslo/hunter/issues/comments/227021488","html_url":"https://github.com/ruslo/hunter/issues/123#issuecomment-227021488","issue_url":"https://api.github.com/repos/ruslo/hunter/issues/123","id":227021488,"user":{"login":"Cyberunner23","id":746256,"avatar_url":"https://avatars.githubusercontent.com/u/746256?v=3","gravatar_id":"","url":"https://api.github.com/users/Cyberunner23","html_url":"https://github.com/Cyberunner23","followers_url":"https://api.github.com/users/Cyberunner23/followers","following_url":"https://api.github.com/users/Cyberunner23/following{/other_user}","gists_url":"https://api.github.com/users/Cyberunner23/gists{/gist_id}","starred_url":"https://api.github.com/users/Cyberunner23/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Cyberunner23/subscriptions","organizations_url":"https://api.github.com/users/Cyberunner23/orgs","repos_url":"https://api.github.com/users/Cyberunner23/repos","events_url":"https://api.github.com/users/Cyberunner23/events{/privacy}","received_events_url":"https://api.github.com/users/Cyberunner23/received_events","type":"User","site_admin":false},"created_at":"2016-06-19T21:31:14Z","updated_at":"2016-06-19T21:31:14Z","body":"> \r\n    Path to sources: ```/<hunter-binary-dir>/<package>/Source```\r\n    Path to build: ```/<hunter-binary-dir>/<package>/Build```\r\n\r\nAnd also I suggest the paths being something like ```/<hunter-binary-dir>/Builds/<package>``` to keep hunter root somewhat clean when multiple packages are used.\r\n\r\n"}}
{"actor":{"display_login":"Cyberunner23"}}