summaryrefslogtreecommitdiffstats
path: root/Help/prop_tgt/DEFINE_SYMBOL.rst
blob: f47f135eaa90c1a27f7d14ccf1aa5211921ce99f (plain)
1
2
3
4
5
6
7
8
9
10
11
DEFINE_SYMBOL
-------------

Define a symbol when compiling this target's sources.

DEFINE_SYMBOL sets the name of the preprocessor symbol defined when
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.