diff options
author | Robert Maynard <robert.maynard@kitware.com> | 2020-09-10 17:46:04 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2020-09-10 20:15:55 (GMT) |
commit | bf88a94d88556ecd93e5612afe3fad99334579fb (patch) | |
tree | 40419d1c079c99b1cfbb4d356dbf493ad0a285f3 | |
parent | 8de145cae18a8c368ffce60c511d6f6424c55aa2 (diff) | |
download | CMake-bf88a94d88556ecd93e5612afe3fad99334579fb.zip CMake-bf88a94d88556ecd93e5612afe3fad99334579fb.tar.gz CMake-bf88a94d88556ecd93e5612afe3fad99334579fb.tar.bz2 |
ISPC: CompilerLauncher tests work properly with x86 builds
-rw-r--r-- | Tests/RunCMake/CompilerLauncher/ISPC-common.cmake | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Tests/RunCMake/CompilerLauncher/ISPC-common.cmake b/Tests/RunCMake/CompilerLauncher/ISPC-common.cmake index 5beff3d..a6e576e 100644 --- a/Tests/RunCMake/CompilerLauncher/ISPC-common.cmake +++ b/Tests/RunCMake/CompilerLauncher/ISPC-common.cmake @@ -1,4 +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) |