From a55f92813e0e06a24d057b209abda79256598717 Mon Sep 17 00:00:00 2001 From: ibs Date: Fri, 11 Oct 2013 09:55:50 +0400 Subject: [PATCH] 0024227: Enable SSE2 instructions for OCCT building sse2 if used for just vc7, vc8, vc9 and vc10 --- CMakeLists.txt | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index e2ad451358..70cc241074 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -39,12 +39,16 @@ endif() if (DEFINED MSVC70) SET(COMPILER vc7) + add_definitions(/arch:SSE2) elseif (DEFINED MSVC80) SET(COMPILER vc8) + add_definitions(/arch:SSE2) elseif (DEFINED MSVC90) SET(COMPILER vc9) + add_definitions(/arch:SSE2) elseif (DEFINED MSVC10) SET(COMPILER vc10) + add_definitions(/arch:SSE2) elseif (DEFINED MSVC11) SET(COMPILER vc11) else() @@ -77,9 +81,6 @@ IF(WIN32) ENDIF() ENDIF() -# sse2 -add_definitions(/arch:SSE2) - # warning level 4 IF(MSVC) if(CMAKE_CXX_FLAGS MATCHES "/W[0-4]") -- 2.20.1