{"action":"created","issue":{"url":"https://api.github.com/repos/nerdvegas/rez/issues/394","repository_url":"https://api.github.com/repos/nerdvegas/rez","labels_url":"https://api.github.com/repos/nerdvegas/rez/issues/394/labels{/name}","comments_url":"https://api.github.com/repos/nerdvegas/rez/issues/394/comments","events_url":"https://api.github.com/repos/nerdvegas/rez/issues/394/events","html_url":"https://github.com/nerdvegas/rez/issues/394","id":213473352,"number":394,"title":"Variant agnostic build steps","user":{"login":"ttanimura","id":8716308,"avatar_url":"https://avatars0.githubusercontent.com/u/8716308?v=3","gravatar_id":"","url":"https://api.github.com/users/ttanimura","html_url":"https://github.com/ttanimura","followers_url":"https://api.github.com/users/ttanimura/followers","following_url":"https://api.github.com/users/ttanimura/following{/other_user}","gists_url":"https://api.github.com/users/ttanimura/gists{/gist_id}","starred_url":"https://api.github.com/users/ttanimura/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ttanimura/subscriptions","organizations_url":"https://api.github.com/users/ttanimura/orgs","repos_url":"https://api.github.com/users/ttanimura/repos","events_url":"https://api.github.com/users/ttanimura/events{/privacy}","received_events_url":"https://api.github.com/users/ttanimura/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-03-10T22:50:50Z","updated_at":"2017-03-10T23:03:58Z","closed_at":null,"body":"Is there an existing way of executing project-level (i.e. variant agnostic) build steps for packages with variants? Our packages contain a target to build Sphinx docs which are the same across all variants, so ideally we would like to only build them once. \r\n\r\nCurrently Rez treats each variant as a separate cmake project, so `PROJECT_BINARY_DIR` points to the variant's root directory, not the project's. I had a look through the cmake env vars and variables, but couldn't find anything that represented the project-level build directory. I can work around this with some path hackery, but it seems error-prone.\r\n\r\nThanks! "},"comment":{"url":"https://api.github.com/repos/nerdvegas/rez/issues/comments/285809274","html_url":"https://github.com/nerdvegas/rez/issues/394#issuecomment-285809274","issue_url":"https://api.github.com/repos/nerdvegas/rez/issues/394","id":285809274,"user":{"login":"nerdvegas","id":1632842,"avatar_url":"https://avatars2.githubusercontent.com/u/1632842?v=3","gravatar_id":"","url":"https://api.github.com/users/nerdvegas","html_url":"https://github.com/nerdvegas","followers_url":"https://api.github.com/users/nerdvegas/followers","following_url":"https://api.github.com/users/nerdvegas/following{/other_user}","gists_url":"https://api.github.com/users/nerdvegas/gists{/gist_id}","starred_url":"https://api.github.com/users/nerdvegas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nerdvegas/subscriptions","organizations_url":"https://api.github.com/users/nerdvegas/orgs","repos_url":"https://api.github.com/users/nerdvegas/repos","events_url":"https://api.github.com/users/nerdvegas/events{/privacy}","received_events_url":"https://api.github.com/users/nerdvegas/received_events","type":"User","site_admin":false},"created_at":"2017-03-10T23:03:58Z","updated_at":"2017-03-10T23:03:58Z","body":"There's no way to do this currently. Even if there were I'm not sure how it\nshould work. Perhaps introduce a 'base' build? But that would surely break\nexisting builds. Unless it's opt-in on a per-package+configurable basis.\n\nWill have to think about but this is something that's come up a number of\ntimes.\n\nA\n\n\nOn Sat, Mar 11, 2017 at 9:50 AM, ttanimura <notifications@github.com> wrote:\n\n> Is there an existing way of executing project-level (i.e. variant\n> agnostic) build steps for packages with variants? Our packages contain a\n> target to build Sphinx docs which are the same across all variants, so\n> ideally we would like to only build them once.\n>\n> Currently Rez treats each variant as a separate cmake project, so\n> PROJECT_BINARY_DIR points to the variant's root directory, not the\n> project's. I had a look through the cmake env vars and variables, but\n> couldn't find anything that represented the project-level build directory.\n> I can work around this with some path hackery, but it seems error-prone.\n>\n> Thanks!\n>\n> —\n> You are receiving this because you are subscribed to this thread.\n> Reply to this email directly, view it on GitHub\n> <https://github.com/nerdvegas/rez/issues/394>, or mute the thread\n> <https://github.com/notifications/unsubscribe-auth/ABjqSseYrQtGdjMoFnwd_XraT0QfGEZLks5rkdPKgaJpZM4MZ9Nm>\n> .\n>\n"}}
{"actor":{"display_login":"nerdvegas"}}