summaryrefslogtreecommitdiffstats
path: root/Modules/CMakeISPCInformation.cmake
diff options
context:
space:
mode:
authorRobert Maynard <robert.maynard@kitware.com>2020-09-10 17:20:36 (GMT)
committerBrad King <brad.king@kitware.com>2020-09-10 20:15:55 (GMT)
commita83521e082f11fd08027e0f440408914bd83a5eb (patch)
treeb3791cc6428578b77d0890926c64ec264d637223 /Modules/CMakeISPCInformation.cmake
parent5b3644fba6b3a9eb56070d8ba8f3b9b6281ba62b (diff)
downloadCMake-a83521e082f11fd08027e0f440408914bd83a5eb.zip
CMake-a83521e082f11fd08027e0f440408914bd83a5eb.tar.gz
CMake-a83521e082f11fd08027e0f440408914bd83a5eb.tar.bz2
ISPC: Use the `obj` file extension for objects on windows
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.