Skip to content

Commit

Permalink
Fix improper compiler flag check
Browse files Browse the repository at this point in the history
  • Loading branch information
anthony-linaro committed Nov 8, 2024
1 parent 53fb3d3 commit 56ef88d
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions share/cmake/utils/CompilerFlags.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,11 @@ if(OCIO_USE_SIMD)

if (OCIO_USE_SSE2NEON AND COMPILER_SUPPORTS_ARM_NEON)
include(CheckSupportSSEUsingSSE2NEON)
if(NOT COMPILER_SUPPORTS_SSE_WITH_SSE2NEON)
# Enable the "new" preprocessor, to more closely match Clang/GCC, required for sse2neon
set(PLATFORM_COMPILE_OPTIONS "${PLATFORM_COMPILE_OPTIONS};/Zc:preprocessor")
if(COMPILER_SUPPORTS_SSE_WITH_SSE2NEON)
if(WIN32)
# Enable the "new" preprocessor, to more closely match Clang/GCC, required for sse2neon
set(PLATFORM_COMPILE_OPTIONS "${PLATFORM_COMPILE_OPTIONS};/Zc:preprocessor")
endif()
else()
set(OCIO_USE_SSE2NEON OFF)
endif()
Expand Down

0 comments on commit 56ef88d

Please sign in to comment.