diff options
author | Robert Maynard <rmaynard@nvidia.com> | 2022-08-29 16:07:40 (GMT) |
---|---|---|
committer | Robert Maynard <rmaynard@nvidia.com> | 2022-09-02 12:04:39 (GMT) |
commit | 93f2cd5b7c799492bf605f8c704cd5b29404d18f (patch) | |
tree | 6e312067710c36aa4afb34c9ba618a2e491751a4 /Modules/CMakeDetermineCompilerABI.cmake | |
parent | 96564c5b2d84568459c2b594a7db3baccb524260 (diff) | |
download | CMake-93f2cd5b7c799492bf605f8c704cd5b29404d18f.zip CMake-93f2cd5b7c799492bf605f8c704cd5b29404d18f.tar.gz CMake-93f2cd5b7c799492bf605f8c704cd5b29404d18f.tar.bz2 |
CMakeParseImplicitLinkInfo: Better detection of msvc
Use the compiler id information in addition to checking for `cl.exe`.
Diffstat (limited to 'Modules/CMakeDetermineCompilerABI.cmake')
-rw-r--r-- | Modules/CMakeDetermineCompilerABI.cmake | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Modules/CMakeDetermineCompilerABI.cmake b/Modules/CMakeDetermineCompilerABI.cmake index 82a6d21..69021c1 100644 --- a/Modules/CMakeDetermineCompilerABI.cmake +++ b/Modules/CMakeDetermineCompilerABI.cmake @@ -149,7 +149,8 @@ function(CMAKE_DETERMINE_COMPILER_ABI lang src) if(CMAKE_${lang}_VERBOSE_FLAG) CMAKE_PARSE_IMPLICIT_LINK_INFO("${OUTPUT}" implicit_libs implicit_dirs implicit_fwks log "${CMAKE_${lang}_IMPLICIT_OBJECT_REGEX}" - COMPUTE_IMPLICIT_OBJECTS implicit_objs) + COMPUTE_IMPLICIT_OBJECTS implicit_objs + LANGUAGE ${lang}) file(APPEND ${CMAKE_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/CMakeOutput.log "Parsed ${lang} implicit link information from above output:\n${log}\n\n") endif() |