cuda_wrap_srcs error

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view

cuda_wrap_srcs error

Ajay Panyala-2

I am trying to compile a simple cuda program to an object file with "cuda_wrap_srcs" using the following CMakeLists.txt:

cmake_minimum_required(VERSION 3.7 FATAL_ERROR)
project (TEST C CXX)
cuda_wrap_srcs(hello OBJ hello_test OPTIONS -O3)

I see the following error:

I am not sure what I am missing in the call to cuda_wrap_srcs.



Powered by

Please keep messages on-topic and check the CMake FAQ at:

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

CMake Support:
CMake Consulting:
CMake Training Courses:

Visit other Kitware open-source projects at

Follow this link to subscribe/unsubscribe: