Skip to content

Commit c08e66d

Browse files
Check for MSVC before setting MSVC-style flag
1 parent 7c2deb3 commit c08e66d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

share/cmake/utils/CompilerFlags.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ if(OCIO_USE_SIMD)
1919
if (OCIO_USE_SSE2NEON AND COMPILER_SUPPORTS_ARM_NEON)
2020
include(CheckSupportSSEUsingSSE2NEON)
2121
if(COMPILER_SUPPORTS_SSE_WITH_SSE2NEON)
22-
if(WIN32)
22+
if(WIN32 AND MSVC)
2323
# Enable the "new" preprocessor, to more closely match Clang/GCC, required for sse2neon
2424
set(PLATFORM_COMPILE_OPTIONS "${PLATFORM_COMPILE_OPTIONS};/Zc:preprocessor")
2525
endif()

0 commit comments

Comments
 (0)