{"action":"opened","issue":{"url":"https://api.github.com/repos/arrayfire/arrayfire/issues/332","labels_url":"https://api.github.com/repos/arrayfire/arrayfire/issues/332/labels{/name}","comments_url":"https://api.github.com/repos/arrayfire/arrayfire/issues/332/comments","events_url":"https://api.github.com/repos/arrayfire/arrayfire/issues/332/events","html_url":"https://github.com/arrayfire/arrayfire/issues/332","id":54333456,"number":332,"title":"ArrayFire does not link against CUDA framework on OS X 10.9, 10.10","user":{"login":"skalarproduktraum","id":586495,"avatar_url":"https://avatars.githubusercontent.com/u/586495?v=3","gravatar_id":"","url":"https://api.github.com/users/skalarproduktraum","html_url":"https://github.com/skalarproduktraum","followers_url":"https://api.github.com/users/skalarproduktraum/followers","following_url":"https://api.github.com/users/skalarproduktraum/following{/other_user}","gists_url":"https://api.github.com/users/skalarproduktraum/gists{/gist_id}","starred_url":"https://api.github.com/users/skalarproduktraum/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/skalarproduktraum/subscriptions","organizations_url":"https://api.github.com/users/skalarproduktraum/orgs","repos_url":"https://api.github.com/users/skalarproduktraum/repos","events_url":"https://api.github.com/users/skalarproduktraum/events{/privacy}","received_events_url":"https://api.github.com/users/skalarproduktraum/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-01-14T15:17:56Z","updated_at":"2015-01-14T15:17:56Z","closed_at":null,"body":"Hello,\r\n\r\nwe've experienced the problem that CMake seems to recognize CUDA (v6.5 is installed), but fails to add the correct flags to the compiler command, such that linking fails for libafcuda.dylib and the CUDA-dependent examples: \r\n\r\n```\r\nLinking CXX shared library libafcuda.dylib\r\nld: file not found: @rpath/CUDA.framework/Versions/A/CUDA for architecture x86_64\r\nclang: error: linker command failed with exit code 1 (use -v to see invocation)\r\nmake[2]: *** [src/backend/cuda/libafcuda.dylib] Error 1\r\nmake[1]: *** [src/backend/cuda/CMakeFiles/afcuda.dir/all] Error 2\r\n```\r\n\r\nBy adding `-F/Library/Frameworks -framework CUDA` to link.txt in `src/backend/cuda/CMakeFiles/afcuda.dir/`, this can be fixed for Makefile builds until the next makefile generation.\r\n\r\n(Unfortunately, I do not know how I can coerce CMake to include these flags permanently on OS X, otherwise I would have sent a pull req...)\r\n\r\nThanks!\r\n\r\nulrik"}}