{"action":"created","issue":{"url":"https://api.github.com/repos/jbeder/yaml-cpp/issues/439","repository_url":"https://api.github.com/repos/jbeder/yaml-cpp","labels_url":"https://api.github.com/repos/jbeder/yaml-cpp/issues/439/labels{/name}","comments_url":"https://api.github.com/repos/jbeder/yaml-cpp/issues/439/comments","events_url":"https://api.github.com/repos/jbeder/yaml-cpp/issues/439/events","html_url":"https://github.com/jbeder/yaml-cpp/issues/439","id":191822240,"number":439,"title":"What's the point of yaml-cpp-targets?","user":{"login":"tambry","id":1827708,"avatar_url":"https://avatars.githubusercontent.com/u/1827708?v=3","gravatar_id":"","url":"https://api.github.com/users/tambry","html_url":"https://github.com/tambry","followers_url":"https://api.github.com/users/tambry/followers","following_url":"https://api.github.com/users/tambry/following{/other_user}","gists_url":"https://api.github.com/users/tambry/gists{/gist_id}","starred_url":"https://api.github.com/users/tambry/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tambry/subscriptions","organizations_url":"https://api.github.com/users/tambry/orgs","repos_url":"https://api.github.com/users/tambry/repos","events_url":"https://api.github.com/users/tambry/events{/privacy}","received_events_url":"https://api.github.com/users/tambry/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":9,"created_at":"2016-11-26T19:26:35Z","updated_at":"2016-12-05T09:52:49Z","closed_at":null,"body":"Currently I have yaml-cpp as a git submodule, that gets added using add_subdirectory to my own project. Calling find_package(yaml-cpp) on CMake 3.7 generates the following error:\r\n```\r\nThe file\r\n\r\n   .../build/3rdparty/yaml-cpp/yaml-cpp-targets.cmake\r\n\r\n  was generated by the export() command.  It may not be used as the argument\r\n  to the include() command.  Use ALIAS targets instead to refer to targets by\r\n  alternative names.\r\n```\r\n\r\nAfter going through the yaml-cpp CMakeLists.txt I'm not quite sure why this file is needed to be generated. Generating this file through the export command generates the error shown above when being built inside another project (ie. as a submodule).  \r\nNote that there's also a SO question [here](http://stackoverflow.com/questions/37204734/correctly-set-cmake-variables-when-adding-yaml-cpp-to-existing-project), that has an answer that is not ideal at all for my usage - I want to include it as a submodule and then build it.\r\n\r\nIs this really needed? Is there any way I can workaround this problem, besides simply disabling the generation of that file?"},"comment":{"url":"https://api.github.com/repos/jbeder/yaml-cpp/issues/comments/264810756","html_url":"https://github.com/jbeder/yaml-cpp/issues/439#issuecomment-264810756","issue_url":"https://api.github.com/repos/jbeder/yaml-cpp/issues/439","id":264810756,"user":{"login":"sergiud","id":2170034,"avatar_url":"https://avatars.githubusercontent.com/u/2170034?v=3","gravatar_id":"","url":"https://api.github.com/users/sergiud","html_url":"https://github.com/sergiud","followers_url":"https://api.github.com/users/sergiud/followers","following_url":"https://api.github.com/users/sergiud/following{/other_user}","gists_url":"https://api.github.com/users/sergiud/gists{/gist_id}","starred_url":"https://api.github.com/users/sergiud/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sergiud/subscriptions","organizations_url":"https://api.github.com/users/sergiud/orgs","repos_url":"https://api.github.com/users/sergiud/repos","events_url":"https://api.github.com/users/sergiud/events{/privacy}","received_events_url":"https://api.github.com/users/sergiud/received_events","type":"User","site_admin":false},"created_at":"2016-12-05T09:52:49Z","updated_at":"2016-12-05T09:52:49Z","body":"@tambry Please test #446."}}
{"actor":{"display_login":"sergiud"}}