[cmake-developers] [CMake 0013824]: FindCUDA: requires cmake project to have C++ toolchain
Mantis Bug Tracker
mantis at public.kitware.com
Mon Dec 31 03:41:39 EST 2012
The following issue has been SUBMITTED.
======================================================================
http://cmake.org/Bug/view.php?id=13824
======================================================================
Reported By: Mathieu Malaterre
Assigned To:
======================================================================
Project: CMake
Issue ID: 13824
Category: Modules
Reproducibility: always
Severity: block
Priority: normal
Status: new
======================================================================
Date Submitted: 2012-12-31 03:41 EST
Last Modified: 2012-12-31 03:41 EST
======================================================================
Summary: FindCUDA: requires cmake project to have C++
toolchain
Description:
I cannot use FindCUDA from a C-only cmake project.
Steps to Reproduce:
$ cd /tmp
$ mkdir cuda
$ cd cuda
$ touch empty.c
$ cat CMakeLists.txt
project(bla C)
include(FindCUDA)
CUDA_ADD_LIBRARY(foo SHARED empty.c)
$ cmake .
[...]
-- Configuring done
CMake Error: Error required internal CMake variable not set, cmake may be not be
built correctly.
Missing variable is:
CMAKE_CXX_CREATE_SHARED_LIBRARY
-- Generating done
-- Build files have been written to: /tmp/cuda
======================================================================
Issue History
Date Modified Username Field Change
======================================================================
2012-12-31 03:41 Mathieu MalaterreNew Issue
======================================================================
More information about the cmake-developers
mailing list