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 ====================================================================== -- 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