{"action":"created","issue":{"url":"https://api.github.com/repos/BioMedIA/IRTK/issues/70","labels_url":"https://api.github.com/repos/BioMedIA/IRTK/issues/70/labels{/name}","comments_url":"https://api.github.com/repos/BioMedIA/IRTK/issues/70/comments","events_url":"https://api.github.com/repos/BioMedIA/IRTK/issues/70/events","html_url":"https://github.com/BioMedIA/IRTK/pull/70","id":123250714,"number":70,"title":"Order of include_directories in CMake files","user":{"login":"kevin-keraudren","id":802153,"avatar_url":"https://avatars.githubusercontent.com/u/802153?v=3","gravatar_id":"","url":"https://api.github.com/users/kevin-keraudren","html_url":"https://github.com/kevin-keraudren","followers_url":"https://api.github.com/users/kevin-keraudren/followers","following_url":"https://api.github.com/users/kevin-keraudren/following{/other_user}","gists_url":"https://api.github.com/users/kevin-keraudren/gists{/gist_id}","starred_url":"https://api.github.com/users/kevin-keraudren/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kevin-keraudren/subscriptions","organizations_url":"https://api.github.com/users/kevin-keraudren/orgs","repos_url":"https://api.github.com/users/kevin-keraudren/repos","events_url":"https://api.github.com/users/kevin-keraudren/events{/privacy}","received_events_url":"https://api.github.com/users/kevin-keraudren/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-12-21T10:25:56Z","updated_at":"2015-12-22T07:42:10Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/BioMedIA/IRTK/pulls/70","html_url":"https://github.com/BioMedIA/IRTK/pull/70","diff_url":"https://github.com/BioMedIA/IRTK/pull/70.diff","patch_url":"https://github.com/BioMedIA/IRTK/pull/70.patch"},"body":"The order in which include_directories appear in CMake files matters as we do not want previously installed versions of IRTK to interfere with the current build.\r\n\r\nThe proposed fix was obtained with the following perl one-liner:\r\n\r\n    perl -pi -e 's/include_directories\\(\\\"/include_directories\\(BEFORE \\\"/g'  `find Modules -name CMakeLists.txt`\r\n\r\nThis issue occured while compiling in an Anaconda environment and is highlighted below:\r\n\r\n    In file included from ~/anaconda/conda-bld/work/Modules/Common/include/irtkMath.h:21:\r\n    ~/anaconda/include/cutil_math.h:26:10: fatal error: 'cuda_runtime.h' file not found\r\n    #include <cuda_runtime.h>\r\n             ^\r\n    1 error generated.\r\n\r\nNote that the old `~/anaconda/include/cutil_math.h` is picked up instead of the development version at `~/anaconda/conda-bld/work/Modules/Common/include/cutil_math.h`"},"comment":{"url":"https://api.github.com/repos/BioMedIA/IRTK/issues/comments/166542903","html_url":"https://github.com/BioMedIA/IRTK/pull/70#issuecomment-166542903","issue_url":"https://api.github.com/repos/BioMedIA/IRTK/issues/70","id":166542903,"user":{"login":"ghisvail","id":1964655,"avatar_url":"https://avatars.githubusercontent.com/u/1964655?v=3","gravatar_id":"","url":"https://api.github.com/users/ghisvail","html_url":"https://github.com/ghisvail","followers_url":"https://api.github.com/users/ghisvail/followers","following_url":"https://api.github.com/users/ghisvail/following{/other_user}","gists_url":"https://api.github.com/users/ghisvail/gists{/gist_id}","starred_url":"https://api.github.com/users/ghisvail/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ghisvail/subscriptions","organizations_url":"https://api.github.com/users/ghisvail/orgs","repos_url":"https://api.github.com/users/ghisvail/repos","events_url":"https://api.github.com/users/ghisvail/events{/privacy}","received_events_url":"https://api.github.com/users/ghisvail/received_events","type":"User","site_admin":false},"created_at":"2015-12-22T07:42:10Z","updated_at":"2015-12-22T07:42:10Z","body":"> My old install of IRTK headers also landed in ${ANACONDA_HOME}/include hence the origin of the conflict.\r\n\r\nSo if you remove them, this issue goes away doesn't it?"}}