{"action":"created","issue":{"url":"https://api.github.com/repos/premake/premake-core/issues/621","repository_url":"https://api.github.com/repos/premake/premake-core","labels_url":"https://api.github.com/repos/premake/premake-core/issues/621/labels{/name}","comments_url":"https://api.github.com/repos/premake/premake-core/issues/621/comments","events_url":"https://api.github.com/repos/premake/premake-core/issues/621/events","html_url":"https://github.com/premake/premake-core/issues/621","id":187924255,"number":621,"title":"subprojects and subworkspaces","user":{"login":"d-sviridov","id":10780622,"avatar_url":"https://avatars.githubusercontent.com/u/10780622?v=3","gravatar_id":"","url":"https://api.github.com/users/d-sviridov","html_url":"https://github.com/d-sviridov","followers_url":"https://api.github.com/users/d-sviridov/followers","following_url":"https://api.github.com/users/d-sviridov/following{/other_user}","gists_url":"https://api.github.com/users/d-sviridov/gists{/gist_id}","starred_url":"https://api.github.com/users/d-sviridov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/d-sviridov/subscriptions","organizations_url":"https://api.github.com/users/d-sviridov/orgs","repos_url":"https://api.github.com/users/d-sviridov/repos","events_url":"https://api.github.com/users/d-sviridov/events{/privacy}","received_events_url":"https://api.github.com/users/d-sviridov/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-11-08T07:53:11Z","updated_at":"2016-11-08T10:45:16Z","closed_at":null,"body":"When using project structure like that:\r\n```\r\n./premake5.lua  \r\n   has workspace and project \"main\"\r\n./libA/premake5.lua\r\n  has its own workspace and project \"libA\"\r\n```\r\nthe `./premake5.lua` has `include \"libA\"`\r\n\r\nafter `premake5 gmake` in the root, it generates the `main.make` under `./libA` instead of at the root.\r\nif `./libA/premake5.lua` does not have its own workspace, everything is fine, and `main.make` is generated at root and `libA.make` under `./libA/`\r\n"},"comment":{"url":"https://api.github.com/repos/premake/premake-core/issues/comments/259104620","html_url":"https://github.com/premake/premake-core/issues/621#issuecomment-259104620","issue_url":"https://api.github.com/repos/premake/premake-core/issues/621","id":259104620,"user":{"login":"samsinsane","id":11887457,"avatar_url":"https://avatars.githubusercontent.com/u/11887457?v=3","gravatar_id":"","url":"https://api.github.com/users/samsinsane","html_url":"https://github.com/samsinsane","followers_url":"https://api.github.com/users/samsinsane/followers","following_url":"https://api.github.com/users/samsinsane/following{/other_user}","gists_url":"https://api.github.com/users/samsinsane/gists{/gist_id}","starred_url":"https://api.github.com/users/samsinsane/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/samsinsane/subscriptions","organizations_url":"https://api.github.com/users/samsinsane/orgs","repos_url":"https://api.github.com/users/samsinsane/repos","events_url":"https://api.github.com/users/samsinsane/events{/privacy}","received_events_url":"https://api.github.com/users/samsinsane/received_events","type":"User","site_admin":false},"created_at":"2016-11-08T10:45:16Z","updated_at":"2016-11-08T10:45:16Z","body":"Ok, here's the issue:\r\n```lua\r\nworkspace \"main\"\r\nconfigurations { \"release\", \"debug\" }\r\n  \r\ninclude \"libA\"\r\nproject \"main\"\r\n```\r\n\r\nIs the same as:\r\n```lua\r\nworkspace \"main\"\r\nconfigurations { \"release\", \"debug\" }\r\n  \r\nworkspace \"libA\"\r\nconfigurations { \"release\", \"debug\" }\r\n\r\nproject \"libA\"\r\n  kind \"StaticLib\"\r\n  language \"C++\"\r\n  files {\r\n     \"*.h\",\r\n     \"*.c++\"\r\n  }\r\nproject \"main\"\r\n```\r\n\r\nWhat you really want is the `include \"libA\"` to be either at the top or bottom of the \"main\" premake5.lua. :)"}}
{"actor":{"display_login":"samsinsane"}}