diff options
author | Brad King <brad.king@kitware.com> | 2020-01-21 14:52:13 (GMT) |
---|---|---|
committer | Kitware Robot <kwrobot@kitware.com> | 2020-01-21 14:52:20 (GMT) |
commit | 958df7021f5d677a7ebe112e671f6c9890e6e614 (patch) | |
tree | f4f5f65f04a901465a40c036e87512802ff3bf5b /Modules | |
parent | 7a89e3c36cf919bf7c608456bcfd5d12978dc037 (diff) | |
parent | afbbfe51090e5575e11c4e3cdbddfa55c76d9966 (diff) | |
download | CMake-958df7021f5d677a7ebe112e671f6c9890e6e614.zip CMake-958df7021f5d677a7ebe112e671f6c9890e6e614.tar.gz CMake-958df7021f5d677a7ebe112e671f6c9890e6e614.tar.bz2 |
Merge topic 'mingw-find-no-dll'
afbbfe5109 MinGW: Update find_library to not find plain .dll files
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !4248
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/Platform/Windows-Clang.cmake | 2 | ||||
-rw-r--r-- | Modules/Platform/Windows-GNU.cmake | 2 |
2 files changed, 2 insertions, 2 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:") diff --git a/Modules/Platform/Windows-GNU.cmake b/Modules/Platform/Windows-GNU.cmake index 235d9ce..38a8cf4 100644 --- a/Modules/Platform/Windows-GNU.cmake +++ b/Modules/Platform/Windows-GNU.cmake @@ -25,7 +25,7 @@ endif() if(MINGW) 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_C_STANDARD_LIBRARIES_INIT "-lkernel32 -luser32 -lgdi32 -lwinspool -lshell32 -lole32 -loleaut32 -luuid -lcomdlg32 -ladvapi32") set(CMAKE_CXX_STANDARD_LIBRARIES_INIT "${CMAKE_C_STANDARD_LIBRARIES_INIT}") endif() |