From 56ef88db943c574ac650b384d9d9964dca736ea8 Mon Sep 17 00:00:00 2001 From: Anthony Roberts Date: Fri, 8 Nov 2024 13:19:33 +0000 Subject: [PATCH] Fix improper compiler flag check --- share/cmake/utils/CompilerFlags.cmake | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/share/cmake/utils/CompilerFlags.cmake b/share/cmake/utils/CompilerFlags.cmake index 5f2d27366..1557091d0 100644 --- a/share/cmake/utils/CompilerFlags.cmake +++ b/share/cmake/utils/CompilerFlags.cmake @@ -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()