The following issue has been SUBMITTED.
======================================================================
https://cmake.org/Bug/view.php?id=16065
======================================================================
Reported By: Guillaume Dumont
Assigned To:
======================================================================
Project: CMake
Issue ID: 16065
Category: CMake
Reproducibility: always
Severity: minor
Priority: normal
Status: new
======================================================================
Date Submitted: 2016-04-14 19:57 EDT
Last Modified: 2016-04-14 19:57 EDT
======================================================================
Summary: 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?
======================================================================
Issue History
Date Modified Username Field Change
======================================================================
2016-04-14 19:57 Guillaume DumontNew Issue
======================================================================
--
Powered by www.kitware.com
Please keep messages on-topic and check the CMake FAQ at:
http://www.cmake.org/Wiki/CMake_FAQ
Kitware offers various services to support the CMake community. For more
information on each offering, please visit:
CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html
Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html
Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/cmake-developers