mirror of
https://github.com/Kitware/CMake.git
synced 2026-05-13 01:29:02 -05:00
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
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
detect-lib_foo.a-msvc
|
||||
---------------------
|
||||
|
||||
* On Windows, when targeting the MSVC ABI, the :command:`find_library` command
|
||||
now accepts ``.a`` file names after first considering ``.lib``. This is
|
||||
symmetric with existing behavior when targeting the GNU ABI, in which the
|
||||
command accepts ``.lib`` file names after first considering ``.a``.
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user