View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0016065CMakeCMakepublic2016-04-14 19:572016-06-10 14:31
ReporterGuillaume Dumont 
Assigned ToKitware Robot 
PrioritynormalSeverityminorReproducibilityalways
StatusclosedResolutionmoved 
Platform64 bitOSWindowsOS Version10
Product VersionCMake 3.5.1 
Target VersionFixed in Version 
Summary0016065: Building CUDA files fails when compile definitions contains parenthesis
DescriptionWhen 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?
TagsNo tags attached.
Attached Files

 Relationships

  Notes
(0042983)
Kitware Robot (administrator)
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.

 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


Copyright © 2000 - 2018 MantisBT Team