Skip to content

Commit

Permalink
Check for MSVC before setting MSVC-style flag
Browse files Browse the repository at this point in the history
Signed-off-by: Anthony Roberts <anthony.roberts@linaro.org>
  • Loading branch information
anthony-linaro committed Dec 13, 2024
1 parent 7c2deb3 commit 231c7b6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion share/cmake/utils/CompilerFlags.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ if(OCIO_USE_SIMD)
if (OCIO_USE_SSE2NEON AND COMPILER_SUPPORTS_ARM_NEON)
include(CheckSupportSSEUsingSSE2NEON)
if(COMPILER_SUPPORTS_SSE_WITH_SSE2NEON)
if(WIN32)
if(WIN32 AND MSVC)
# Enable the "new" preprocessor, to more closely match Clang/GCC, required for sse2neon
set(PLATFORM_COMPILE_OPTIONS "${PLATFORM_COMPILE_OPTIONS};/Zc:preprocessor")
endif()
Expand Down

0 comments on commit 231c7b6

Please sign in to comment.