Consider following example:

CMakeLists.txt
==============
cmake_minimum_required(VERSION 2.6)
project(TestCUDA CXX)
find_package(CUDA)
cuda_add_executable(test_cuda test_cuda.cu)

test_cuda.cu
============
int main(int argc, char const *argv[]) { return 0; }


Running: cmake -GNinja && ninja

ninja: warning: multiple rules generate 
CMakeFiles/test_cuda.dir/test_cuda_generated_test_cuda.cu.o.depend. builds 
involving this target will not be correct; continuing anyway
[1/2] Building NVCC (Device) object 
CMakeFiles/test_cuda.dir//./test_cuda_generated_test_cuda.cu.o

What is that?

Is there any way to circumvent that?

Regards,
-- 
Adam
-- 

Powered by www.kitware.com

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Kitware offers various services to support the CMake community. For more 
information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/cgi-bin/mailman/listinfo/cmake-developers

Reply via email to