diff options
author | Brad King <brad.king@kitware.com> | 2013-05-16 18:37:13 (GMT) |
---|---|---|
committer | CMake Topic Stage <kwrobot@kitware.com> | 2013-05-16 18:37:13 (GMT) |
commit | 3256ecb7b98783dd89f2a1a4bd6630af2f642f47 (patch) | |
tree | 0939bd17ba2a8740b24c4baf053ddce20529a9da /Modules/FindCUDA.cmake | |
parent | 8ec007083ed2cc96c7296d2e8b9ac62be84df859 (diff) | |
parent | 32b582d8a583fcaea92eff4b33af62ab0e10ceaa (diff) | |
download | CMake-3256ecb7b98783dd89f2a1a4bd6630af2f642f47.zip CMake-3256ecb7b98783dd89f2a1a4bd6630af2f642f47.tar.gz CMake-3256ecb7b98783dd89f2a1a4bd6630af2f642f47.tar.bz2 |
Merge topic 'Cuda_WRAP_SRCS_duplicates'
32b582d FindCUDA: Remove duplicate entries from INCLUDE_DIRECTORIES.
Diffstat (limited to 'Modules/FindCUDA.cmake')
-rw-r--r-- | Modules/FindCUDA.cmake | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Modules/FindCUDA.cmake b/Modules/FindCUDA.cmake index 8248624..5a680e3 100644 --- a/Modules/FindCUDA.cmake +++ b/Modules/FindCUDA.cmake @@ -1027,7 +1027,10 @@ macro(CUDA_WRAP_SRCS cuda_target format generated_files) # Initialize our list of includes with the user ones followed by the CUDA system ones. set(CUDA_NVCC_INCLUDE_ARGS ${CUDA_NVCC_INCLUDE_ARGS_USER} "-I${CUDA_INCLUDE_DIRS}") # Get the include directories for this directory and use them for our nvcc command. + # Remove duplicate entries which may be present since include_directories + # in CMake >= 2.8.8 does not remove them. get_directory_property(CUDA_NVCC_INCLUDE_DIRECTORIES INCLUDE_DIRECTORIES) + list(REMOVE_DUPLICATES CUDA_NVCC_INCLUDE_DIRECTORIES) if(CUDA_NVCC_INCLUDE_DIRECTORIES) foreach(dir ${CUDA_NVCC_INCLUDE_DIRECTORIES}) list(APPEND CUDA_NVCC_INCLUDE_ARGS -I${dir}) |