Browse Source

ISPC: Use the `obj` file extension for objects on windows

Robert Maynard 5 năm trước cách đây
mục cha
commit
a83521e082
1 tập tin đã thay đổi với 5 bổ sung1 xóa
  1. 5 1
      Modules/CMakeISPCInformation.cmake

+ 5 - 1
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.