MantisBT - CMake
View Issue Details
0016065CMakeCMakepublic2016-04-14 19:572016-06-10 14:31
Guillaume Dumont 
Kitware Robot 
normalminoralways
closedmoved 
64 bitWindows10
CMake 3.5.1 
 
0016065: Building CUDA files fails when compile definitions contains parenthesis
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?
No tags attached.
Issue History
2016-04-14 19:57Guillaume DumontNew Issue
2016-06-10 14:29Kitware RobotNote Added: 0042983
2016-06-10 14:29Kitware RobotStatusnew => resolved
2016-06-10 14:29Kitware RobotResolutionopen => moved
2016-06-10 14:29Kitware RobotAssigned To => Kitware Robot
2016-06-10 14:31Kitware RobotStatusresolved => closed

Notes
(0042983)
Kitware Robot   
2016-06-10 14:29   
Resolving issue as `moved`.

This issue tracker is no longer used. Further discussion of this issue may take place in the current CMake Issues page linked in the banner at the top of this page.