1
0
mirror of https://github.com/Kitware/CMake.git synced 2025-10-14 02:08:27 +08:00

Help: add notes for POSIX platforms to the DEFINE_SYMBOL target property

Fixes #24310
This commit is contained in:
Ralf Habacker
2023-01-12 12:28:35 +01:00
parent 304f133305
commit 22d8ff63f5

View File

@@ -8,4 +8,10 @@ compiling sources in a shared library. If not set here then it is set
to ``target_EXPORTS`` by default (with some substitutions if the target is
not a valid C identifier). This is useful for headers to know whether
they are being included from inside their library or outside to
properly setup dllexport/dllimport decorations.
properly setup dllexport/dllimport decorations on Windows.
On POSIX platforms, this can optionally be used to control the visibility
of symbols.
CMake provides support for such decorations with the :module:`GenerateExportHeader`
module.