Back to Cmake

CMAKE_SHARED_LIBRARY_ENABLE_EXPORTS

Help/variable/CMAKE_SHARED_LIBRARY_ENABLE_EXPORTS.rst

4.3.2459 B
Original Source

CMAKE_SHARED_LIBRARY_ENABLE_EXPORTS

.. versionadded:: 3.27

Specify whether shared library generates an import file.

This variable is used to initialize the :prop_tgt:ENABLE_EXPORTS target property for shared library targets when they are created by calls to the :command:add_library command. See the property documentation for details.

See Also ^^^^^^^^

  • The :variable:CMAKE_EXECUTABLE_ENABLE_EXPORTS variable.