diff --git a/CMakeLists.txt b/CMakeLists.txt index 12d8abbd..a11c561c 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -120,7 +120,7 @@ elseif(GLM_TEST_ENABLE_SIMD_SSE3) add_definitions(-msse3) elseif(GLM_USE_INTEL) add_definitions(/QxSSE3) - elseif(MSVC) + elseif(MSVC AND NOT CMAKE_CL_64) add_definitions(/arch:SSE2) # VC doesn't support /arch:SSE3 endif() elseif(GLM_TEST_ENABLE_SIMD_SSE2) @@ -128,10 +128,8 @@ elseif(GLM_TEST_ENABLE_SIMD_SSE2) add_definitions(-msse2) elseif(GLM_USE_INTEL) add_definitions(/QxSSE2) - elseif(MSVC) - if(NOT CMAKE_CL_64) - add_definitions(/arch:SSE2) - endif() + elseif(MSVC AND NOT CMAKE_CL_64) + add_definitions(/arch:SSE2) endif() endif()