It works perfectly - thanks!
QT
On Tue, 28 Aug 2018 at 12:37, Robert Maynard
wrote:
> The way Eric suggest with check_language is what I use when I want to
> conditionally support CUDA.
>
> On Tue, Aug 28, 2018 at 10:28 AM Eric Noulard
> wrote:
>
>>
>>
>> Le mar. 28 août 2018 à 19:07, Quang
The way Eric suggest with check_language is what I use when I want to
conditionally support CUDA.
On Tue, Aug 28, 2018 at 10:28 AM Eric Noulard
wrote:
>
>
> Le mar. 28 août 2018 à 19:07, Quang Ha a écrit :
>
>> Hi all,
>>
>> So this question is again about project(foo LANGUAGES CXX CUDA). Is
Le mar. 28 août 2018 à 19:07, Quang Ha a écrit :
> Hi all,
>
> So this question is again about project(foo LANGUAGES CXX CUDA). Is it
> possible to switch off CUDA if Cmake couldn't find CUDA compiler? I.e.
> something along the line:
>
May be you can only:
project(foo LANGUAGES CXX)
then
Hi all,
So this question is again about project(foo LANGUAGES CXX CUDA). Is it
possible to switch off CUDA if Cmake couldn't find CUDA compiler? I.e.
something along the line:
if (CUDA_FOUND)
set_language_to_CUDA_and_CXX
else(CUDA_FOUND)
set_language_to_CXX_only
endif(CUDA_FOUND)
The main