MantisBT - CMake | |||||
View Issue Details | |||||
ID | Project | Category | View Status | Date Submitted | Last Update |
0014565 | CMake | CMake | public | 2013-11-13 04:47 | 2016-06-10 14:31 |
Reporter | ahaferburg | ||||
Assigned To | James Bigler | ||||
Priority | normal | Severity | minor | Reproducibility | have not tried |
Status | closed | Resolution | moved | ||
Platform | OS | OS Version | |||
Product Version | |||||
Target Version | Fixed in Version | ||||
Summary | 0014565: CUDA_NVCC_FLAGS_<config> in FindCuda.cmake | ||||
Description | CUDA_NVCC_FLAGS_DEBUG, CUDA_NVCC_FLAGS_RELEASE, etc are all being ignored; they don't end up in the .cu.cmake files (generated by cuda_add_library() I believe). I've traced this to an empty CUDA_NVCC_FLAGS_CONFIG, which in turn comes from an empty CUDA_configuration_types variable when it is used in the macro CUDA_WRAP_SRCS. However, when I put CUDA_configuration_types into the parent scope it all works properly (I think): FindCuda.cmake:470 set(CUDA_configuration_types ${CMAKE_CONFIGURATION_TYPES} ${CMAKE_BUILD_TYPE} Debug MinSizeRel Release RelWithDebInfo) list(REMOVE_DUPLICATES CUDA_configuration_types) set(CUDA_configuration_types ${CUDA_configuration_types} PARENT_SCOPE) # <<---- missing Note that we include a script which calls FIND_PACKAGE(). We then add projects with add_subdirectory(), one of which uses CUDA. I assume using add_subdirectory() causes the problem. | ||||
Steps To Reproduce | |||||
Additional Information | |||||
Tags | No tags attached. | ||||
Relationships | |||||
Attached Files | |||||
Issue History | |||||
Date Modified | Username | Field | Change | ||
2013-11-13 04:47 | ahaferburg | New Issue | |||
2013-11-13 04:50 | ahaferburg | Note Added: 0034440 | |||
2013-11-13 08:44 | Brad King | Assigned To | => James Bigler | ||
2013-11-13 08:44 | Brad King | Status | new => assigned | ||
2016-06-10 14:29 | Kitware Robot | Note Added: 0042421 | |||
2016-06-10 14:29 | Kitware Robot | Status | assigned => resolved | ||
2016-06-10 14:29 | Kitware Robot | Resolution | open => moved | ||
2016-06-10 14:31 | Kitware Robot | Status | resolved => closed |
Notes | |||||
|
|||||
|
|
||||
|
|||||
|
|