diff options
author | Brad King <brad.king@kitware.com> | 2022-11-28 20:37:04 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2022-11-28 20:42:27 (GMT) |
commit | 955d6245c14a4bfe8b4a7a2304ec998bfc6a5561 (patch) | |
tree | b0917942f807bef19daa20cbbaf7eb346c9811b9 /Modules/Platform/Windows.cmake | |
parent | 90907c8ff96ff07f0dafc1f4904d25b1e10f014b (diff) | |
download | CMake-955d6245c14a4bfe8b4a7a2304ec998bfc6a5561.zip CMake-955d6245c14a4bfe8b4a7a2304ec998bfc6a5561.tar.gz CMake-955d6245c14a4bfe8b4a7a2304ec998bfc6a5561.tar.bz2 |
MSVC: Revert "Teach find_library to consider the 'libfoo.a' naming convention"
Revert commit be848a71b0 (MSVC: Teach find_library to consider the
'libfoo.a' naming convention, 2022-09-19, v3.25.0-rc1~111^2). When
targeting the MSVC ABI, this causes GNU-ABI libraries to be found in
cases they were not previously, and broke existing builds. Revert the
change pending further discussion on how to handle the motivating use
case.
Issue: #23975
Fixes: #24168
Diffstat (limited to 'Modules/Platform/Windows.cmake')
-rw-r--r-- | Modules/Platform/Windows.cmake | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Modules/Platform/Windows.cmake b/Modules/Platform/Windows.cmake index 5263161..d8b3957 100644 --- a/Modules/Platform/Windows.cmake +++ b/Modules/Platform/Windows.cmake @@ -19,8 +19,8 @@ set(CMAKE_LINK_LIBRARY_SUFFIX ".lib") set(CMAKE_DL_LIBS "") set(CMAKE_EXTRA_LINK_EXTENSIONS ".targets") -set(CMAKE_FIND_LIBRARY_PREFIXES "" "lib") -set(CMAKE_FIND_LIBRARY_SUFFIXES ".lib" ".a") +set(CMAKE_FIND_LIBRARY_PREFIXES "") +set(CMAKE_FIND_LIBRARY_SUFFIXES ".lib") # for borland make long command lines are redirected to a file # with the following syntax, see Windows-bcc32.cmake for use |