ISPC: Generated Headers suffix configurable with a better default

The target property `ISPC_HEADER_SUFFIX` and associated global
variable now can control the suffix used when generating the
C/C++ interoperability ISPC headers.

In addition the default suffix is now "_ispc.h" which matches the
common convention that the ISPC compiler team uses and recommends.
This commit is contained in:
Robert Maynard
2020-12-10 16:08:24 -05:00
committed by Brad King
parent 6aff058ab4
commit c9a50f3556
26 changed files with 148 additions and 15 deletions
+14
View File
@@ -0,0 +1,14 @@
ISPC_HEADER_SUFFIX
------------------
.. versionadded:: 3.19.2
Specify output suffix to be used for ISPC generated headers provided by the target.
This property is initialized by the value of the :variable:`CMAKE_ISPC_HEADER_SUFFIX`
variable if it is set when a target is created.
If the target contains ISPC source files, this specifies the header suffix to
be used for the generated headers.
The default value is ``_ispc.h``.