{"action":"created","issue":{"url":"https://api.github.com/repos/RobotLocomotion/drake/issues/2118","repository_url":"https://api.github.com/repos/RobotLocomotion/drake","labels_url":"https://api.github.com/repos/RobotLocomotion/drake/issues/2118/labels{/name}","comments_url":"https://api.github.com/repos/RobotLocomotion/drake/issues/2118/comments","events_url":"https://api.github.com/repos/RobotLocomotion/drake/issues/2118/events","html_url":"https://github.com/RobotLocomotion/drake/pull/2118","id":149250467,"number":2118,"title":"Optionally keep external source in build directory","user":{"login":"mwoehlke-kitware","id":6474409,"avatar_url":"https://avatars.githubusercontent.com/u/6474409?v=3","gravatar_id":"","url":"https://api.github.com/users/mwoehlke-kitware","html_url":"https://github.com/mwoehlke-kitware","followers_url":"https://api.github.com/users/mwoehlke-kitware/followers","following_url":"https://api.github.com/users/mwoehlke-kitware/following{/other_user}","gists_url":"https://api.github.com/users/mwoehlke-kitware/gists{/gist_id}","starred_url":"https://api.github.com/users/mwoehlke-kitware/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mwoehlke-kitware/subscriptions","organizations_url":"https://api.github.com/users/mwoehlke-kitware/orgs","repos_url":"https://api.github.com/users/mwoehlke-kitware/repos","events_url":"https://api.github.com/users/mwoehlke-kitware/events{/privacy}","received_events_url":"https://api.github.com/users/mwoehlke-kitware/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/RobotLocomotion/drake/labels/waiting%20for%20code%20review","name":"waiting for code review","color":"d4c5f9"}],"state":"open","locked":false,"assignee":{"login":"sherm1","id":4088016,"avatar_url":"https://avatars.githubusercontent.com/u/4088016?v=3","gravatar_id":"","url":"https://api.github.com/users/sherm1","html_url":"https://github.com/sherm1","followers_url":"https://api.github.com/users/sherm1/followers","following_url":"https://api.github.com/users/sherm1/following{/other_user}","gists_url":"https://api.github.com/users/sherm1/gists{/gist_id}","starred_url":"https://api.github.com/users/sherm1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sherm1/subscriptions","organizations_url":"https://api.github.com/users/sherm1/orgs","repos_url":"https://api.github.com/users/sherm1/repos","events_url":"https://api.github.com/users/sherm1/events{/privacy}","received_events_url":"https://api.github.com/users/sherm1/received_events","type":"User","site_admin":false},"milestone":null,"comments":1,"created_at":"2016-04-18T19:37:06Z","updated_at":"2016-04-19T00:42:23Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/RobotLocomotion/drake/pulls/2118","html_url":"https://github.com/RobotLocomotion/drake/pull/2118","diff_url":"https://github.com/RobotLocomotion/drake/pull/2118.diff","patch_url":"https://github.com/RobotLocomotion/drake/pull/2118.patch"},"body":"Add an option (only available in non-PODS configuration¹) to keep the sources for external projects in the build directory, rather than the source directory. This ensures that it is always possible to have multiple build trees for a single (drake) source tree, at the expense of added inconvenience and disk usage (because the sources for external projects are duplicated).\r\n\r\n(¹ i.e. running CMake directly rather than using the root `Makefile`.)\r\n\r\nNote: This is OFF by default. CI will only test that adding the option didn't break anything.\r\n\r\nThis should fix #1859 and possibly #2094 (when using the option), though I'm on the fence if I want to close the issue(s) when this lands. I think we should still strive to fix individual packages that \"pollute\" the source tree when not using this option.\n\n<!-- Reviewable:start -->\n---\nThis change is [<img src=\"https://reviewable.io/review_button.svg\" height=\"35\" align=\"absmiddle\" alt=\"Reviewable\"/>](https://reviewable.io/reviews/robotlocomotion/drake/2118)\n<!-- Reviewable:end -->\n"},"comment":{"url":"https://api.github.com/repos/RobotLocomotion/drake/issues/comments/211656170","html_url":"https://github.com/RobotLocomotion/drake/pull/2118#issuecomment-211656170","issue_url":"https://api.github.com/repos/RobotLocomotion/drake/issues/2118","id":211656170,"user":{"login":"sherm1","id":4088016,"avatar_url":"https://avatars.githubusercontent.com/u/4088016?v=3","gravatar_id":"","url":"https://api.github.com/users/sherm1","html_url":"https://github.com/sherm1","followers_url":"https://api.github.com/users/sherm1/followers","following_url":"https://api.github.com/users/sherm1/following{/other_user}","gists_url":"https://api.github.com/users/sherm1/gists{/gist_id}","starred_url":"https://api.github.com/users/sherm1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sherm1/subscriptions","organizations_url":"https://api.github.com/users/sherm1/orgs","repos_url":"https://api.github.com/users/sherm1/repos","events_url":"https://api.github.com/users/sherm1/events{/privacy}","received_events_url":"https://api.github.com/users/sherm1/received_events","type":"User","site_admin":false},"created_at":"2016-04-19T00:42:23Z","updated_at":"2016-04-19T00:42:23Z","body":"@mwoehlke-kitware, I tried this in Windows. First I deleted my drake-distro/externals directory, then I built using an out-of-source build directory. *Most* of the externals did go into the build directory as expected. However, a new drake-distro/externals directory got created with some cruft. For example, here is drake-distro/externals/eigen:\r\n![image](https://cloud.githubusercontent.com/assets/4088016/14624116/8b8106c8-058c-11e6-86b9-38f53bf78dc6.png)\r\n\r\nThe list of polluters was: bot_core_lcmtypes, bullet, eigen, googletest, gtk, lcm, spotless, swigmake, and yaml_cpp.\r\n\r\nIs this the behavior you are expecting?"}}