Skip to content

FindCUDA: de-duplicates C++11 flag when propagating host flags

David Hirvonen requested to merge headupinclouds/cmake:patch-1 into master

FindCUDA: de-duplicates C++11 flag when propagating host flags.

Specifically, this replaces ";" w/ "=" in the c++11 MATCHES test.

On OS X (at least) the current expression can cause --std=c++11 to be added twice, which triggers the following nvcc error:

 nvcc fatal   : redefinition of argument 'std'

Unless I'm missing something, this looks like a simple typo.

Topic-rename: FindCUDA-deduplicate-c+std-host-flags

Edited by Ben Boeckel

Merge request reports