summaryrefslogtreecommitdiff
path: root/Help/guide/tutorial/Step5/MathFunctions/MathFunctions.h
diff options
context:
space:
mode:
authorCorentin Damman <c.damman@intopix.com>2023-02-17 08:53:55 -0500
committerCorentin Damman <c.damman@intopix.com>2023-02-23 09:19:06 +0100
commit1e199363200f33c63160b2fd2730c2f86283ce1e (patch)
treea1fc768e698fd2dd10d6802fedfaaf6e60b106e2 /Help/guide/tutorial/Step5/MathFunctions/MathFunctions.h
parentab049ed7f1efef546ef82d1ec2585a03b47eccce (diff)
downloadcmake-1e199363200f33c63160b2fd2730c2f86283ce1e.tar.gz
GenerateExportHeader: Fix Clang support on Windows
When using Clang with Visual Studio, the GenerateExportHeader function generates the DEPRECATED definition "__attribute__ ((__deprecated__))", because Clang can compile such instruction. However, if a user wants to compile the library with this generated header with MSVC, the declaration is not valid. We suggest to always use the DEPRECATED definition "__declspec(deprecated)" on Windows, which is valid for both Clang and MSVC.
Diffstat (limited to 'Help/guide/tutorial/Step5/MathFunctions/MathFunctions.h')
0 files changed, 0 insertions, 0 deletions