diff options
author | Brad King <brad.king@kitware.com> | 2023-01-18 15:52:44 (GMT) |
---|---|---|
committer | Kitware Robot <kwrobot@kitware.com> | 2023-01-18 15:52:59 (GMT) |
commit | c15ce6048637d496245c892daa03d1c0ca1b5e08 (patch) | |
tree | 566785a7f41764113c533af9f1f059204fde3f0d | |
parent | 3e7f3e2ca90ca8d5c20c81579893559691c03158 (diff) | |
parent | 22d8ff63f5b740eae7c502ba520151c14b0252ab (diff) | |
download | CMake-c15ce6048637d496245c892daa03d1c0ca1b5e08.zip CMake-c15ce6048637d496245c892daa03d1c0ca1b5e08.tar.gz CMake-c15ce6048637d496245c892daa03d1c0ca1b5e08.tar.bz2 |
Merge topic 'doc-DEFINE_SYMBOL-unix'
22d8ff63f5 Help: add notes for POSIX platforms to the DEFINE_SYMBOL target property
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !8062
-rw-r--r-- | Help/prop_tgt/DEFINE_SYMBOL.rst | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/Help/prop_tgt/DEFINE_SYMBOL.rst b/Help/prop_tgt/DEFINE_SYMBOL.rst index eb7f937..775cf89 100644 --- a/Help/prop_tgt/DEFINE_SYMBOL.rst +++ b/Help/prop_tgt/DEFINE_SYMBOL.rst @@ -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. |