You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

19 lines
943 B

  1. WINDOWS_EXPORT_ALL_SYMBOLS
  2. --------------------------
  3. This property is implemented only for MS-compatible tools on Windows.
  4. Enable this boolean property to automatically create a module definition
  5. (``.def``) file with all global symbols found in the input ``.obj`` files
  6. for a ``SHARED`` library (or executable with :prop_tgt:`ENABLE_EXPORTS`)
  7. on Windows. The module definition file will be passed to the linker
  8. causing all symbols to be exported from the ``.dll``.
  9. For global *data* symbols, ``__declspec(dllimport)`` must still be used when
  10. compiling against the code in the ``.dll``. All other function symbols will
  11. be automatically exported and imported by callers. This simplifies porting
  12. projects to Windows by reducing the need for explicit ``dllexport`` markup,
  13. even in ``C++`` classes.
  14. This property is initialized by the value of
  15. the :variable:`CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS` variable if it is set
  16. when a target is created.