diff options
author | James Bigler <jbigler@nvidia.com> | 2010-01-08 17:12:54 (GMT) |
---|---|---|
committer | James Bigler <jbigler@nvidia.com> | 2010-01-08 17:12:54 (GMT) |
commit | d3034f9b561ab4a4d5cb4bc515d31d4770f192a8 (patch) | |
tree | f1d21f4d2d552fe029a928aedf4dcc386d9ad609 /Modules/FindCUDA.cmake | |
parent | f89b0abad5967aab747e7b5dc45c7f656433aa4a (diff) | |
download | CMake-d3034f9b561ab4a4d5cb4bc515d31d4770f192a8.zip CMake-d3034f9b561ab4a4d5cb4bc515d31d4770f192a8.tar.gz CMake-d3034f9b561ab4a4d5cb4bc515d31d4770f192a8.tar.bz2 |
Disable the --host-compilation flag for CUDA >= 3.0 since it is derecated.
Diffstat (limited to 'Modules/FindCUDA.cmake')
-rw-r--r-- | Modules/FindCUDA.cmake | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/Modules/FindCUDA.cmake b/Modules/FindCUDA.cmake index 4be3671..e9a2a3c 100644 --- a/Modules/FindCUDA.cmake +++ b/Modules/FindCUDA.cmake @@ -813,7 +813,11 @@ macro(CUDA_WRAP_SRCS cuda_target format generated_files) if(CUDA_HOST_COMPILATION_CPP) set(CUDA_C_OR_CXX CXX) else(CUDA_HOST_COMPILATION_CPP) - set(nvcc_flags ${nvcc_flags} --host-compilation C) + if(CUDA_VERSION VERSION_LESS "3.0") + set(nvcc_flags ${nvcc_flags} --host-compilation C) + else() + message( "WARNING: --host-compilation flag is deprecated in CUDA version >= 3.0. Removing --host-compilation C flag" ) + endif() set(CUDA_C_OR_CXX C) endif(CUDA_HOST_COMPILATION_CPP) |