summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2022-09-20 13:12:43 (GMT)
committerKitware Robot <kwrobot@kitware.com>2022-09-20 13:12:57 (GMT)
commitfc17277bdad832e45991de60090c8688b60855fa (patch)
tree879e5cd80754705db09d8eed326556da1c50f839 /Modules
parent396ed90aa17ba06e5d192755485adbadd2402316 (diff)
parentbe848a71b079cbb21b2b6f9bdbf5d2fff8f46426 (diff)
downloadCMake-fc17277bdad832e45991de60090c8688b60855fa.zip
CMake-fc17277bdad832e45991de60090c8688b60855fa.tar.gz
CMake-fc17277bdad832e45991de60090c8688b60855fa.tar.bz2
Merge topic 'detect-lib_foo.a-msvc'
be848a71b0 MSVC: Teach find_library to consider the 'libfoo.a' naming convention Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !7694
Diffstat (limited to 'Modules')
-rw-r--r--Modules/Platform/Windows.cmake4
1 files changed, 2 insertions, 2 deletions
diff --git a/Modules/Platform/Windows.cmake b/Modules/Platform/Windows.cmake
index d8b3957..5263161 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 "")
-set(CMAKE_FIND_LIBRARY_SUFFIXES ".lib")
+set(CMAKE_FIND_LIBRARY_PREFIXES "" "lib")
+set(CMAKE_FIND_LIBRARY_SUFFIXES ".lib" ".a")
# for borland make long command lines are redirected to a file
# with the following syntax, see Windows-bcc32.cmake for use