[cmake-developers] [CMake 0015045]: FindCUDA.cmake passes directory COMPILE_DEFINITIONS to nvcc without handling generator expressions
Mantis Bug Tracker
mantis at public.kitware.com
Tue Jul 29 07:42:59 EDT 2014
The following issue has been SUBMITTED.
======================================================================
http://public.kitware.com/Bug/view.php?id=15045
======================================================================
Reported By: Nils Gladitz
Assigned To: James Bigler
======================================================================
Project: CMake
Issue ID: 15045
Category: Modules
Reproducibility: always
Severity: minor
Priority: normal
Status: assigned
======================================================================
Date Submitted: 2014-07-29 07:42 EDT
Last Modified: 2014-07-29 07:42 EDT
======================================================================
Summary: FindCUDA.cmake passes directory COMPILE_DEFINITIONS
to nvcc without handling generator expressions
Description:
A colleague noticed this while using UseQt4.cmake which since 3.0 contains:
set_property(DIRECTORY APPEND PROPERTY COMPILE_DEFINITIONS
$<$<NOT:$<CONFIG:Debug>>:QT_NO_DEBUG>)
To recreate the old behaviour generator expressions could be stripped with the
new string(GENEX_STRIP) or perhaps even expanded with file(GENERATE).
Steps to Reproduce:
cmake_minimum_required(VERSION 3.0)
set_property(DIRECTORY APPEND PROPERTY
COMPILE_DEFINITIONS $<$<NOT:$<CONFIG:Foo>>:NOT_FOO>
)
find_package(CUDA REQUIRED)
cuda_add_library(empty empty.cu)
======================================================================
Issue History
Date Modified Username Field Change
======================================================================
2014-07-29 07:42 Nils Gladitz New Issue
2014-07-29 07:42 Nils Gladitz Status new => assigned
2014-07-29 07:42 Nils Gladitz Assigned To => James Bigler
======================================================================
More information about the cmake-developers
mailing list