Skip to content

Conversation

patmarion
Copy link

Recent versions of cmake set CUDA_HOST_COMPILER to CMAKE_C_COMPILER
which on OSX defaults to clang (/usr/bin/cc), but this is not a
supported cuda compiler. This commit adds a workaround to
preemptively set CUDA_HOST_COMPILER to gcc if that compiler exists in
/usr/bin.

Recent versions of cmake set CUDA_HOST_COMPILER to CMAKE_C_COMPILER
which on OSX defaults to clang (/usr/bin/cc), but this is not a
supported cuda compiler.  This commit adds a workaround to
preemptively set CUDA_HOST_COMPILER to gcc if that compiler exists in
/usr/bin.
jspricke added a commit that referenced this pull request Mar 28, 2013
Add a workaround for incorrect CUDA_HOST_COMPILER setting
@jspricke jspricke merged commit b636207 into PointCloudLibrary:master Mar 28, 2013
@jspricke
Copy link
Member

jspricke commented Sep 6, 2013

I cloesd this 5 month ago, have a look: #32

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants