cmake/Help/prop_tgt/GNUtoMS.rst

18 lines
860 B
ReStructuredText
Raw Normal View History

2014-08-03 19:52:23 +02:00
GNUtoMS
-------
2019-11-11 23:01:05 +01:00
Convert GNU import library (``.dll.a``) to MS format (``.lib``).
2014-08-03 19:52:23 +02:00
When linking a shared library or executable that exports symbols using
GNU tools on Windows (MinGW/MSYS) with Visual Studio installed convert
2019-11-11 23:01:05 +01:00
the import library (``.dll.a``) from GNU to MS format (``.lib``). Both import
libraries will be installed by :command:`install(TARGETS)` and exported by
:command:`install(EXPORT)` and :command:`export` to be linked
by applications with either GNU- or MS-compatible tools.
2014-08-03 19:52:23 +02:00
2019-11-11 23:01:05 +01:00
If the variable ``CMAKE_GNUtoMS`` is set when a target is created its
2014-08-03 19:52:23 +02:00
value is used to initialize this property. The variable must be set
2019-11-11 23:01:05 +01:00
prior to the first command that enables a language such as :command:`project`
or :command:`enable_language`. CMake provides the variable as an option to the
2014-08-03 19:52:23 +02:00
user automatically when configuring on Windows with GNU tools.