diff options
author | Brad King <brad.king@kitware.com> | 2023-11-01 16:50:02 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2023-11-01 17:51:10 (GMT) |
commit | 27e64a8498110af4f729dd2e86ad507312d13711 (patch) | |
tree | 43259d1b4bcfe21b87a8de5d145a97204cb45e4b | |
parent | 045399a4610b7452d825cc3a58852884dc717748 (diff) | |
download | CMake-27e64a8498110af4f729dd2e86ad507312d13711.zip CMake-27e64a8498110af4f729dd2e86ad507312d13711.tar.gz CMake-27e64a8498110af4f729dd2e86ad507312d13711.tar.bz2 |
CMakeNVCCParseImplicitInfo: Recognize link.exe line in CUDA VS integration
-rw-r--r-- | Modules/Internal/CMakeNVCCParseImplicitInfo.cmake | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Modules/Internal/CMakeNVCCParseImplicitInfo.cmake b/Modules/Internal/CMakeNVCCParseImplicitInfo.cmake index 32ff28a..3aa10a2 100644 --- a/Modules/Internal/CMakeNVCCParseImplicitInfo.cmake +++ b/Modules/Internal/CMakeNVCCParseImplicitInfo.cmake @@ -52,6 +52,9 @@ macro(cmake_nvcc_parse_implicit_info lang lang_var_) string(APPEND _nvcc_log " considering line: [${_nvcc_output_line}]\n") if("${_nvcc_output_line}" MATCHES "^ *nvlink") string(APPEND _nvcc_log " ignoring nvlink line\n") + elseif("${_nvcc_output_line}" MATCHES "(link\\.exe .*CompilerId${lang}\\.exe.*)$") + set(_nvcc_link_line "${CMAKE_MATCH_1}") + string(APPEND _nvcc_log " extracted link line: [${_nvcc_link_line}]\n") elseif(_nvcc_libraries) if("${_nvcc_output_line}" MATCHES "(@\"?((tmp/)?a\\.exe\\.res)\"?)") set(_nvcc_link_res_arg "${CMAKE_MATCH_1}") |