diff options
author | Corentin Damman <c.damman@intopix.com> | 2023-02-17 08:53:55 -0500 |
---|---|---|
committer | Corentin Damman <c.damman@intopix.com> | 2023-02-23 09:19:06 +0100 |
commit | 1e199363200f33c63160b2fd2730c2f86283ce1e (patch) | |
tree | a1fc768e698fd2dd10d6802fedfaaf6e60b106e2 /Help/guide/tutorial/Step5/MathFunctions/MathFunctions.h | |
parent | ab049ed7f1efef546ef82d1ec2585a03b47eccce (diff) | |
download | cmake-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