{"action":"created","issue":{"url":"https://api.github.com/repos/OPM/opm-common/issues/44","labels_url":"https://api.github.com/repos/OPM/opm-common/issues/44/labels{/name}","comments_url":"https://api.github.com/repos/OPM/opm-common/issues/44/comments","events_url":"https://api.github.com/repos/OPM/opm-common/issues/44/events","html_url":"https://github.com/OPM/opm-common/pull/44","id":107330700,"number":44,"title":"opm-common: avoid overwriting of OPM_MACROS_ROOT.","user":{"login":"dr-robertk","id":8373576,"avatar_url":"https://avatars.githubusercontent.com/u/8373576?v=3","gravatar_id":"","url":"https://api.github.com/users/dr-robertk","html_url":"https://github.com/dr-robertk","followers_url":"https://api.github.com/users/dr-robertk/followers","following_url":"https://api.github.com/users/dr-robertk/following{/other_user}","gists_url":"https://api.github.com/users/dr-robertk/gists{/gist_id}","starred_url":"https://api.github.com/users/dr-robertk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dr-robertk/subscriptions","organizations_url":"https://api.github.com/users/dr-robertk/orgs","repos_url":"https://api.github.com/users/dr-robertk/repos","events_url":"https://api.github.com/users/dr-robertk/events{/privacy}","received_events_url":"https://api.github.com/users/dr-robertk/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":11,"created_at":"2015-09-19T12:51:01Z","updated_at":"2015-09-21T14:19:57Z","closed_at":"2015-09-21T13:57:42Z","pull_request":{"url":"https://api.github.com/repos/OPM/opm-common/pulls/44","html_url":"https://github.com/OPM/opm-common/pull/44","diff_url":"https://github.com/OPM/opm-common/pull/44.diff","patch_url":"https://github.com/OPM/opm-common/pull/44.patch"},"body":"This is rather a question then a fix. I cannot build OPM unless I remove the line `set(OPM_MACROS_ROOT ${CMAKE_INSTALL_PREFIX}/share/opm)` from the `CMakeLists.txt` line 12 in opm-common. This falsely sets the path where to search for opm build system macros  to\r\n``` \r\n/usr/local/share/opm/cmake/Templates\r\n``` \r\nwhich does not exist. This makes opm modules fail to build unless I remove the line mentioned. \r\n\r\nThis PR fixes the problem for me, but might not be the correct way to do it. So I would appreciate if somebody with more knowledge in the build system could take a look at this.\r\n \r\nI have to mention that the problem does not occur in opm-parser, but with all other modules.  "},"comment":{"url":"https://api.github.com/repos/OPM/opm-common/issues/comments/141996718","html_url":"https://github.com/OPM/opm-common/pull/44#issuecomment-141996718","issue_url":"https://api.github.com/repos/OPM/opm-common/issues/44","id":141996718,"user":{"login":"akva2","id":2144327,"avatar_url":"https://avatars.githubusercontent.com/u/2144327?v=3","gravatar_id":"","url":"https://api.github.com/users/akva2","html_url":"https://github.com/akva2","followers_url":"https://api.github.com/users/akva2/followers","following_url":"https://api.github.com/users/akva2/following{/other_user}","gists_url":"https://api.github.com/users/akva2/gists{/gist_id}","starred_url":"https://api.github.com/users/akva2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/akva2/subscriptions","organizations_url":"https://api.github.com/users/akva2/orgs","repos_url":"https://api.github.com/users/akva2/repos","events_url":"https://api.github.com/users/akva2/events{/privacy}","received_events_url":"https://api.github.com/users/akva2/received_events","type":"User","site_admin":false},"created_at":"2015-09-21T14:19:57Z","updated_at":"2015-09-21T14:19:57Z","body":"in any case #45 is the proper fix. actually afaict the explanation is that dunecontrol uses the -config.cmake files, whereas the opm build system does not with sibling builds (it runs in module mode)."}}