MantisBT - CMake | |||||
| View Issue Details | |||||
| ID | Project | Category | View Status | Date Submitted | Last Update |
| 0016065 | CMake | CMake | public | 2016-04-14 19:57 | 2016-06-10 14:31 |
| Reporter | Guillaume Dumont | ||||
| Assigned To | Kitware Robot | ||||
| Priority | normal | Severity | minor | Reproducibility | always |
| Status | closed | Resolution | moved | ||
| Platform | 64 bit | OS | Windows | OS Version | 10 |
| Product Version | CMake 3.5.1 | ||||
| Target Version | Fixed in Version | ||||
| Summary | 0016065: Building CUDA files fails when compile definitions contains parenthesis | ||||
| Description | When calling cuda_wrap_srcs with the OPTIONS argument or when adding compile definitions via add_definitions the build fails when the definitions contain parentheses. For example, add_definitions("-DFOO_BAR_EXPORT=declspec\(dllimport\)") generates: set(nvcc_flags -DFOO_BAR_EXPORT=declspec(dllimport)) which makes the build fail. When the parentheses are escaped like so: add_definitions("-DFOO_BAR_EXPORT=declspec\\\(dllimport\\\)") we get: set(nvcc_flags -DFOO_BAR_EXPORT=declspec\(dllimport\)) and everything is fine. This is similar to issue: https://cmake.org/Bug/view.php?id=15919 [^] Maybe a similar fix can be applied? | ||||
| Steps To Reproduce | |||||
| Additional Information | |||||
| Tags | No tags attached. | ||||
| Relationships | |||||
| Attached Files | |||||
| Issue History | |||||
| Date Modified | Username | Field | Change | ||
| 2016-04-14 19:57 | Guillaume Dumont | New Issue | |||
| 2016-06-10 14:29 | Kitware Robot | Note Added: 0042983 | |||
| 2016-06-10 14:29 | Kitware Robot | Status | new => resolved | ||
| 2016-06-10 14:29 | Kitware Robot | Resolution | open => moved | ||
| 2016-06-10 14:29 | Kitware Robot | Assigned To | => Kitware Robot | ||
| 2016-06-10 14:31 | Kitware Robot | Status | resolved => closed | ||
| Notes | |||||
|
|
|||||
|
|
||||