chrxh / alien

ALIEN is a CUDA-powered artificial life simulation program.
https://alien-project.org
BSD 3-Clause "New" or "Revised" License
3.48k stars 106 forks source link

Silence a few MSVC specific warnings #43

Closed tlemo closed 2 years ago

chrxh commented 2 years ago

Hm, nvcc.exe gives the error message Unknown option '-wd4005'. Maybe this is related to the CUDA version 11.2 I am using?

tlemo commented 2 years ago

Hm, nvcc.exe gives the error message Unknown option '-wd4005'. Maybe this is related to the CUDA version 11.2 I am using?

It might be generator-specific. I only tried the ninja generator, which doesn't add the options to nvcc (CUDA) targets.

I pushed a tweak which should explicitly limit the options to CXX targets, can you please give it another spin?

chrxh commented 2 years ago

Works smoothly on my system as well. Merged.