{"action":"created","issue":{"url":"https://api.github.com/repos/sakra/cotire/issues/57","labels_url":"https://api.github.com/repos/sakra/cotire/issues/57/labels{/name}","comments_url":"https://api.github.com/repos/sakra/cotire/issues/57/comments","events_url":"https://api.github.com/repos/sakra/cotire/issues/57/events","html_url":"https://github.com/sakra/cotire/issues/57","id":66579280,"number":57,"title":"checking if PCH take effect","user":{"login":"filiatra","id":3185717,"avatar_url":"https://avatars.githubusercontent.com/u/3185717?v=3","gravatar_id":"","url":"https://api.github.com/users/filiatra","html_url":"https://github.com/filiatra","followers_url":"https://api.github.com/users/filiatra/followers","following_url":"https://api.github.com/users/filiatra/following{/other_user}","gists_url":"https://api.github.com/users/filiatra/gists{/gist_id}","starred_url":"https://api.github.com/users/filiatra/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/filiatra/subscriptions","organizations_url":"https://api.github.com/users/filiatra/orgs","repos_url":"https://api.github.com/users/filiatra/repos","events_url":"https://api.github.com/users/filiatra/events{/privacy}","received_events_url":"https://api.github.com/users/filiatra/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-04-06T10:43:41Z","updated_at":"2015-04-06T18:44:25Z","closed_at":null,"body":"Hi, \r\n\r\nI incoporated cotire in my cmake project, I get the \"gch\" file created correctly.\r\nHowever I see no reduction in compilation time (in fact there is some increase for creating the gch).\r\n\r\nThe verbose output shows the additional flags: -Winvalid-pch -include \"7path-to/file_prefix.h\" during compilation of the source files.\r\n\r\nMy feeling is that the PCH are created but not used. How can I check if the compiler used the PCH ?\r\n\r\nI am using GCC 4.8.3,\r\n\r\nthank you in advance\r\nfiliatra\r\n"},"comment":{"url":"https://api.github.com/repos/sakra/cotire/issues/comments/90192865","html_url":"https://github.com/sakra/cotire/issues/57#issuecomment-90192865","issue_url":"https://api.github.com/repos/sakra/cotire/issues/57","id":90192865,"user":{"login":"filiatra","id":3185717,"avatar_url":"https://avatars.githubusercontent.com/u/3185717?v=3","gravatar_id":"","url":"https://api.github.com/users/filiatra","html_url":"https://github.com/filiatra","followers_url":"https://api.github.com/users/filiatra/followers","following_url":"https://api.github.com/users/filiatra/following{/other_user}","gists_url":"https://api.github.com/users/filiatra/gists{/gist_id}","starred_url":"https://api.github.com/users/filiatra/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/filiatra/subscriptions","organizations_url":"https://api.github.com/users/filiatra/orgs","repos_url":"https://api.github.com/users/filiatra/repos","events_url":"https://api.github.com/users/filiatra/events{/privacy}","received_events_url":"https://api.github.com/users/filiatra/received_events","type":"User","site_admin":false},"created_at":"2015-04-06T18:44:25Z","updated_at":"2015-04-06T18:44:25Z","body":"Thank you! version 1.7.1 solvew this issue.\r\n\r\nAnother issue: I would like to use a common (automatically generated) PCH for many (eg. 10) targets.\r\nFollowing the maual I set the target property COTIRE_CXX_PREFIX_HEADER_INIT.\r\n\r\nThis works, but what actually happens is that still new PCHs are created per target, all of them containing a single #include line, which includes the file I set at COTIRE_CXX_PREFIX_HEADER_INIT.\r\n\r\nThen, all of the 10 PCHs are compiled, resulting in 10 times the same gch file, with 10 different names.\r\n\r\nProbably it would be possible to really have a single gch for all targets ? \r\n"}}