summaryrefslogtreecommitdiffstats
path: root/Modules/CMakeISPCInformation.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'Modules/CMakeISPCInformation.cmake')
-rw-r--r--Modules/CMakeISPCInformation.cmake6
1 files changed, 5 insertions, 1 deletions
diff --git a/Modules/CMakeISPCInformation.cmake b/Modules/CMakeISPCInformation.cmake
index 46bda5b..5acb682 100644
--- a/Modules/CMakeISPCInformation.cmake
+++ b/Modules/CMakeISPCInformation.cmake
@@ -1,7 +1,11 @@
# Distributed under the OSI-approved BSD 3-Clause License. See accompanying
# file Copyright.txt or https://cmake.org/licensing for details.
-set(CMAKE_ISPC_OUTPUT_EXTENSION .o)
+if(UNIX)
+ set(CMAKE_ISPC_OUTPUT_EXTENSION .o)
+else()
+ set(CMAKE_ISPC_OUTPUT_EXTENSION .obj)
+endif()
set(CMAKE_INCLUDE_FLAG_ISPC "-I")
# Load compiler-specific information.