summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/CompilerLauncher/ISPC-common.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'Tests/RunCMake/CompilerLauncher/ISPC-common.cmake')
-rw-r--r--Tests/RunCMake/CompilerLauncher/ISPC-common.cmake8
1 files changed, 8 insertions, 0 deletions
diff --git a/Tests/RunCMake/CompilerLauncher/ISPC-common.cmake b/Tests/RunCMake/CompilerLauncher/ISPC-common.cmake
new file mode 100644
index 0000000..a6e576e
--- /dev/null
+++ b/Tests/RunCMake/CompilerLauncher/ISPC-common.cmake
@@ -0,0 +1,8 @@
+enable_language(ISPC)
+enable_language(CXX)
+set(CMAKE_VERBOSE_MAKEFILE TRUE)
+
+if(CMAKE_SIZEOF_VOID_P EQUAL 4)
+ set(CMAKE_ISPC_FLAGS "--arch=x86")
+endif()
+add_executable(main main.cxx test.ispc)