{"action":"created","issue":{"url":"https://api.github.com/repos/atilaneves/cmake-ide/issues/77","repository_url":"https://api.github.com/repos/atilaneves/cmake-ide","labels_url":"https://api.github.com/repos/atilaneves/cmake-ide/issues/77/labels{/name}","comments_url":"https://api.github.com/repos/atilaneves/cmake-ide/issues/77/comments","events_url":"https://api.github.com/repos/atilaneves/cmake-ide/issues/77/events","html_url":"https://github.com/atilaneves/cmake-ide/issues/77","id":191123026,"number":77,"title":"specify files / directories relative to `.dir-locals.el`?","user":{"login":"skebanga","id":6157939,"avatar_url":"https://avatars.githubusercontent.com/u/6157939?v=3","gravatar_id":"","url":"https://api.github.com/users/skebanga","html_url":"https://github.com/skebanga","followers_url":"https://api.github.com/users/skebanga/followers","following_url":"https://api.github.com/users/skebanga/following{/other_user}","gists_url":"https://api.github.com/users/skebanga/gists{/gist_id}","starred_url":"https://api.github.com/users/skebanga/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/skebanga/subscriptions","organizations_url":"https://api.github.com/users/skebanga/orgs","repos_url":"https://api.github.com/users/skebanga/repos","events_url":"https://api.github.com/users/skebanga/events{/privacy}","received_events_url":"https://api.github.com/users/skebanga/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-11-22T21:00:41Z","updated_at":"2016-11-23T12:14:35Z","closed_at":null,"body":"I have specified `cmake-ide-cmakelists-dir` and `cmake-ide-build-dir` as relative paths, relative to the location of my `.dir-locals.el` file:\r\n\r\n### Project structure:\r\n\r\n```\r\nproject/\r\n+---- .dir-locals.el\r\n+---- src/\r\n      +---- CMakeLists.txt\r\n      +---- .build/\r\n            +---- debug/\r\n            +---- release/  \r\n```\r\n\r\n### `.dir-locals.el`:\r\n\r\n```\r\n((nil . (\r\n  (cmake-ide-cmakelists-dir . \"src\")\r\n  (cmake-ide-build-dir . \"src/.build/debug\")\r\n)))\r\n```\r\n\r\nIt seems this doesn't work, and `cmake-ide` requires an absolute path. Is this correct?\r\n\r\n### Rationale for relative paths:\r\n\r\n- Multiple colleagues use emacs, and as such would like the checked-in version of `.dir-locals.el` to work regardless of where they check out the source tree\r\n\r\n- Allowing relative paths means using [`git worktree`](https://git-scm.com/docs/git-worktree) to have multiple branches of the same project checked out in your source tree at the same time will work\r\n\r\nHow can I specify relative paths in my `.dir-locals.el` please?"},"comment":{"url":"https://api.github.com/repos/atilaneves/cmake-ide/issues/comments/262498150","html_url":"https://github.com/atilaneves/cmake-ide/issues/77#issuecomment-262498150","issue_url":"https://api.github.com/repos/atilaneves/cmake-ide/issues/77","id":262498150,"user":{"login":"skebanga","id":6157939,"avatar_url":"https://avatars.githubusercontent.com/u/6157939?v=3","gravatar_id":"","url":"https://api.github.com/users/skebanga","html_url":"https://github.com/skebanga","followers_url":"https://api.github.com/users/skebanga/followers","following_url":"https://api.github.com/users/skebanga/following{/other_user}","gists_url":"https://api.github.com/users/skebanga/gists{/gist_id}","starred_url":"https://api.github.com/users/skebanga/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/skebanga/subscriptions","organizations_url":"https://api.github.com/users/skebanga/orgs","repos_url":"https://api.github.com/users/skebanga/repos","events_url":"https://api.github.com/users/skebanga/events{/privacy}","received_events_url":"https://api.github.com/users/skebanga/received_events","type":"User","site_admin":false},"created_at":"2016-11-23T12:14:35Z","updated_at":"2016-11-23T12:14:35Z","body":"OK, thanks Atila.\r\n\r\nI'll close this.\r\n\r\nOn a somewhat related topic, what is the `cmake-ide-project-dir` useful for?\r\n\r\nThanks again"}}
{"actor":{"display_login":"skebanga"}}