diff options
author | Robert Maynard <robert.maynard@kitware.com> | 2020-09-24 19:39:00 (GMT) |
---|---|---|
committer | Robert Maynard <robert.maynard@kitware.com> | 2020-10-06 14:47:20 (GMT) |
commit | e17e2c6a517cf40b41014cdf3e239c0b21da868e (patch) | |
tree | 214a35d04a2214d1aa9d074cad80672ce1cb0f18 /Modules/CheckCompilerFlag.cmake | |
parent | a12da6fb5ece6baf3b4540d8204b8b29dde92538 (diff) | |
download | CMake-e17e2c6a517cf40b41014cdf3e239c0b21da868e.zip CMake-e17e2c6a517cf40b41014cdf3e239c0b21da868e.tar.gz CMake-e17e2c6a517cf40b41014cdf3e239c0b21da868e.tar.bz2 |
ISPC: CheckCompilerFlags and CheckSourceCompiles support ISPC
Diffstat (limited to 'Modules/CheckCompilerFlag.cmake')
-rw-r--r-- | Modules/CheckCompilerFlag.cmake | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Modules/CheckCompilerFlag.cmake b/Modules/CheckCompilerFlag.cmake index 9223009..cca933e 100644 --- a/Modules/CheckCompilerFlag.cmake +++ b/Modules/CheckCompilerFlag.cmake @@ -68,6 +68,8 @@ int main(void) { return 0; }]=]) int main(void) { return 0; }]=]) set(_lang_fail_regex FAIL_REGEX "command line option .* is valid for .* but not for Objective-C\\+\\+" # GNU FAIL_REGEX "argument unused during compilation: .*") # Clang + elseif(_lang STREQUAL ISPC) + set(_lang_src "float func(uniform int32, float a) { return a / 2.25; }") else() message (SEND_ERROR "check_compiler_flag: ${_lang}: unknown language.") return() |