{"action":"created","issue":{"url":"https://api.github.com/repos/OpenImageIO/oiio/issues/1522","repository_url":"https://api.github.com/repos/OpenImageIO/oiio","labels_url":"https://api.github.com/repos/OpenImageIO/oiio/issues/1522/labels{/name}","comments_url":"https://api.github.com/repos/OpenImageIO/oiio/issues/1522/comments","events_url":"https://api.github.com/repos/OpenImageIO/oiio/issues/1522/events","html_url":"https://github.com/OpenImageIO/oiio/issues/1522","id":181774982,"number":1522,"title":"Unable to build current master with old installation - patch included","user":{"login":"robpieke","id":870757,"avatar_url":"https://avatars.githubusercontent.com/u/870757?v=3","gravatar_id":"","url":"https://api.github.com/users/robpieke","html_url":"https://github.com/robpieke","followers_url":"https://api.github.com/users/robpieke/followers","following_url":"https://api.github.com/users/robpieke/following{/other_user}","gists_url":"https://api.github.com/users/robpieke/gists{/gist_id}","starred_url":"https://api.github.com/users/robpieke/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/robpieke/subscriptions","organizations_url":"https://api.github.com/users/robpieke/orgs","repos_url":"https://api.github.com/users/robpieke/repos","events_url":"https://api.github.com/users/robpieke/events{/privacy}","received_events_url":"https://api.github.com/users/robpieke/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-10-07T21:50:19Z","updated_at":"2016-10-10T00:08:47Z","closed_at":null,"body":"### Problem\r\n\r\nI previously built and locally installed OIIO. After a \"git pull\" many moons later, the headers had changed, but the CMake setup was looking in my local installation directory *first* and the git source directory *second*. As such, it was combining old headers with new source and reporting unhappiness to the shell.\r\n\r\nFor example:\r\n/Users/robpieke/dev/github/oiio/src/libutil/argparse.cpp:540:11: error: out-of-line definition of 'briefusage' does not match any declaration in 'OpenImageIO::v1_6::ArgParse'\r\n\r\nThis (ensuring the source headers come first) seems to resolve it for me:\r\n\r\n```\r\ndiff --git a/CMakeLists.txt b/CMakeLists.txt\r\nindex 59c722b..6c98309 100644\r\n--- a/CMakeLists.txt\r\n+++ b/CMakeLists.txt\r\n@@ -359,6 +359,7 @@ include (external packages\r\n \r\n \r\n include_directories (\r\n+    BEFORE\r\n     \"${CMAKE_SOURCE_DIR}/src/include\"\r\n     \"${CMAKE_BINARY_DIR}/include/OpenImageIO\"\r\n   )\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/OpenImageIO/oiio/issues/comments/252522554","html_url":"https://github.com/OpenImageIO/oiio/issues/1522#issuecomment-252522554","issue_url":"https://api.github.com/repos/OpenImageIO/oiio/issues/1522","id":252522554,"user":{"login":"lgritz","id":504179,"avatar_url":"https://avatars.githubusercontent.com/u/504179?v=3","gravatar_id":"","url":"https://api.github.com/users/lgritz","html_url":"https://github.com/lgritz","followers_url":"https://api.github.com/users/lgritz/followers","following_url":"https://api.github.com/users/lgritz/following{/other_user}","gists_url":"https://api.github.com/users/lgritz/gists{/gist_id}","starred_url":"https://api.github.com/users/lgritz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lgritz/subscriptions","organizations_url":"https://api.github.com/users/lgritz/orgs","repos_url":"https://api.github.com/users/lgritz/repos","events_url":"https://api.github.com/users/lgritz/events{/privacy}","received_events_url":"https://api.github.com/users/lgritz/received_events","type":"User","site_admin":false},"created_at":"2016-10-10T00:08:46Z","updated_at":"2016-10-10T00:08:46Z","body":"Makes sense to me. I'll make that change, thanks for the suggestion!\r\n"}}
{"actor":{"display_login":"lgritz"}}