mxcl/homebrew — pull request #10924 by randvoorhies (2012-03-13 23:58:51+00:00)
Title: Fixing FLANN formula

Trying to install FLANN from homebrew resulted in the following error:

Building NVCC (Device) object src/cpp/CMakeFiles/flann_cuda_s.dir/flann/algorithms/./flann_cuda_s_generated_kdtree_cuda_3d_index.cu.o

A quick google search yielded this issue on the FLANN github repo: https://github.com/mariusmuja/flann/issues/25

I added the suggested -DNVCC_COMPILER_BINDER=/usr/bin/llvm-gcc-4.2 and now everything works beautifully.