summaryrefslogtreecommitdiff
path: root/share/cmake-3.22/Help/prop_tgt/DEFINE_SYMBOL.rst
diff options
context:
space:
mode:
Diffstat (limited to 'share/cmake-3.22/Help/prop_tgt/DEFINE_SYMBOL.rst')
-rw-r--r--share/cmake-3.22/Help/prop_tgt/DEFINE_SYMBOL.rst11
1 files changed, 11 insertions, 0 deletions
diff --git a/share/cmake-3.22/Help/prop_tgt/DEFINE_SYMBOL.rst b/share/cmake-3.22/Help/prop_tgt/DEFINE_SYMBOL.rst
new file mode 100644
index 0000000..eb7f937
--- /dev/null
+++ b/share/cmake-3.22/Help/prop_tgt/DEFINE_SYMBOL.rst
@@ -0,0 +1,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.