diff options
author | Brad King <brad.king@kitware.com> | 2019-01-21 15:23:03 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2019-01-21 16:14:08 (GMT) |
commit | c765ae495aa25714023d2cf2bcf6a9873da06184 (patch) | |
tree | 73cafebd165b8e824415f7f641c536b704fd156a /Modules/Compiler/NVIDIA-CUDA.cmake | |
parent | 8c5221fb1fad10518c8ef7901a686a9a816baf0e (diff) | |
download | CMake-c765ae495aa25714023d2cf2bcf6a9873da06184.zip CMake-c765ae495aa25714023d2cf2bcf6a9873da06184.tar.gz CMake-c765ae495aa25714023d2cf2bcf6a9873da06184.tar.bz2 |
CMakeDetermineCompilerABI: pass verbose flag during compilation
Default to the same flag that is used for verbose link information, but
provide another internal platform information variable to use a
compilation-specific variant. Populate it for CUDA where we use a
different compiler for compilation and linking and therefore need
different flags.
Co-Author: Chuck Cranor <chuck@ece.cmu.edu>
Diffstat (limited to 'Modules/Compiler/NVIDIA-CUDA.cmake')
-rw-r--r-- | Modules/Compiler/NVIDIA-CUDA.cmake | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Modules/Compiler/NVIDIA-CUDA.cmake b/Modules/Compiler/NVIDIA-CUDA.cmake index 05db548..de9dd99 100644 --- a/Modules/Compiler/NVIDIA-CUDA.cmake +++ b/Modules/Compiler/NVIDIA-CUDA.cmake @@ -1,4 +1,5 @@ set(CMAKE_CUDA_VERBOSE_FLAG "-v") +set(CMAKE_CUDA_VERBOSE_COMPILE_FLAG "-Xcompiler=-v") if(NOT "x${CMAKE_CUDA_SIMULATE_ID}" STREQUAL "xMSVC") set(CMAKE_CUDA_COMPILE_OPTIONS_PIE -Xcompiler=-fPIE) |