1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-04-04 18:06:22 +03:00

0024227: Enable SSE2 instructions for OCCT building

sse2 if used for just vc7, vc8, vc9 and vc10
This commit is contained in:
ibs 2013-10-11 09:55:50 +04:00 committed by bugmaster
parent b859a34d22
commit a55f92813e

View File

@ -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]")