diff options
author | Brad King <brad.king@kitware.com> | 2020-01-20 18:31:01 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2020-01-20 18:31:45 (GMT) |
commit | afbbfe51090e5575e11c4e3cdbddfa55c76d9966 (patch) | |
tree | a9b19e2dcd91ef9b6774b2b8f20759dc7e51077e /Modules/Platform/Windows-Clang.cmake | |
parent | 941c09616bc214db77e3b1b7e5229517db08b45c (diff) | |
download | CMake-afbbfe51090e5575e11c4e3cdbddfa55c76d9966.zip CMake-afbbfe51090e5575e11c4e3cdbddfa55c76d9966.tar.gz CMake-afbbfe51090e5575e11c4e3cdbddfa55c76d9966.tar.bz2 |
MinGW: Update find_library to not find plain .dll files
Modern distributions of packages built with MinGW tools provide `.dll.a`
import libraries. Prefer those instead of finding plain `.dll` files.
This avoids accidentally finding unrelated Windows `.dll` files.
Fixes: #20019
Diffstat (limited to 'Modules/Platform/Windows-Clang.cmake')
-rw-r--r-- | Modules/Platform/Windows-Clang.cmake | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/Platform/Windows-Clang.cmake b/Modules/Platform/Windows-Clang.cmake index 02864c6..c17cf6d 100644 --- a/Modules/Platform/Windows-Clang.cmake +++ b/Modules/Platform/Windows-Clang.cmake @@ -24,7 +24,7 @@ macro(__windows_compiler_clang_gnu lang) set(CMAKE_DEPFILE_FLAGS_${lang} "-MD -MT <OBJECT> -MF <DEPFILE>") set(CMAKE_FIND_LIBRARY_PREFIXES "lib" "") - set(CMAKE_FIND_LIBRARY_SUFFIXES ".dll" ".dll.a" ".a" ".lib") + set(CMAKE_FIND_LIBRARY_SUFFIXES ".dll.a" ".a" ".lib") set(CMAKE_SUPPORT_WINDOWS_EXPORT_ALL_SYMBOLS 1) set (CMAKE_LINK_DEF_FILE_FLAG "-Xlinker /DEF:") |