MantisBT - CMake | |||||
View Issue Details | |||||
ID | Project | Category | View Status | Date Submitted | Last Update |
0014078 | CMake | CMake | public | 2013-04-12 18:32 | 2013-10-07 10:09 |
Reporter | szotsaki | ||||
Assigned To | James Bigler | ||||
Priority | normal | Severity | minor | Reproducibility | always |
Status | closed | Resolution | no change required | ||
Platform | Linux x64 | OS | openSUSE | OS Version | 12.3 |
Product Version | CMake 2.8.10.2 | ||||
Target Version | Fixed in Version | ||||
Summary | 0014078: FindCUDA "-D${cuda_target}_EXPORTS" generates invalid identifier | ||||
Description | I use CMake as out-of-source-build way, and that's why my cuda_add_library call looks like this: cuda_add_library(../models/program_gpu ../models/program_gpu.cu MODULE) Because it's built as a MODULE, the following line applies in FindCUDA.cmake: if(_cuda_build_shared_libs) list(APPEND nvcc_flags "-D${cuda_target}_EXPORTS") endif() It generates the following: /usr/local/cuda-5.0/bin/nvcc [...] -D../models/program_gpu_EXPORTS [...] Apart from that fact it's not useful, the C standard says it's not valid also. So I got the following error message from nvcc: <command-line>:0:1: error: macro names must be identifiers | ||||
Steps To Reproduce | |||||
Additional Information | |||||
Tags | No tags attached. | ||||
Relationships | |||||
Attached Files | |||||
Issue History | |||||
Date Modified | Username | Field | Change | ||
2013-04-12 18:32 | szotsaki | New Issue | |||
2013-04-12 19:10 | szotsaki | Note Added: 0032823 | |||
2013-04-15 08:57 | Brad King | Assigned To | => James Bigler | ||
2013-04-15 08:57 | Brad King | Status | new => assigned | ||
2013-04-15 08:57 | Brad King | Status | assigned => resolved | ||
2013-04-15 08:57 | Brad King | Resolution | open => no change required | ||
2013-10-07 10:09 | Robert Maynard | Note Added: 0034030 | |||
2013-10-07 10:09 | Robert Maynard | Status | resolved => closed |
Notes | |||||
|
|||||
|
|
||||
|
|||||
|
|