diff options
author | James Bigler <jbigler@nvidia.com> | 2009-12-01 21:28:26 (GMT) |
---|---|---|
committer | James Bigler <jbigler@nvidia.com> | 2009-12-01 21:28:26 (GMT) |
commit | bbfcb198f8a0abd9f2382055ce4f55e8d4389549 (patch) | |
tree | 1a4b4e97db1c4bbc2b2a940c8833d6132321b81d /Modules | |
parent | 1f06c33f8e2dbac5fb2fc730e2c6286e9a220320 (diff) | |
download | CMake-bbfcb198f8a0abd9f2382055ce4f55e8d4389549.zip CMake-bbfcb198f8a0abd9f2382055ce4f55e8d4389549.tar.gz CMake-bbfcb198f8a0abd9f2382055ce4f55e8d4389549.tar.bz2 |
Fix #9970: Use execute_process instead of deprecated exec_program.
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/FindCUDA.cmake | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/FindCUDA.cmake b/Modules/FindCUDA.cmake index 7c28498..4be3671 100644 --- a/Modules/FindCUDA.cmake +++ b/Modules/FindCUDA.cmake @@ -476,7 +476,7 @@ mark_as_advanced(CUDA_NVCC_EXECUTABLE) if(CUDA_NVCC_EXECUTABLE AND NOT CUDA_VERSION) # Compute the version. - exec_program(${CUDA_NVCC_EXECUTABLE} ARGS "--version" OUTPUT_VARIABLE NVCC_OUT) + execute_process (COMMAND ${CUDA_NVCC_EXECUTABLE} "--version" OUTPUT_VARIABLE NVCC_OUT) string(REGEX REPLACE ".*release ([0-9]+)\\.([0-9]+).*" "\\1" CUDA_VERSION_MAJOR ${NVCC_OUT}) string(REGEX REPLACE ".*release ([0-9]+)\\.([0-9]+).*" "\\2" CUDA_VERSION_MINOR ${NVCC_OUT}) set(CUDA_VERSION "${CUDA_VERSION_MAJOR}.${CUDA_VERSION_MINOR}" CACHE STRING "Version of CUDA as computed from nvcc.") |