mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-04-10 18:51:21 +03:00
0024227: Enable SSE2 instructions for OCCT building
sse2 if used for just vc7, vc8, vc9 and vc10
This commit is contained in:
parent
b859a34d22
commit
a55f92813e
@ -39,12 +39,16 @@ endif()
|
|||||||
|
|
||||||
if (DEFINED MSVC70)
|
if (DEFINED MSVC70)
|
||||||
SET(COMPILER vc7)
|
SET(COMPILER vc7)
|
||||||
|
add_definitions(/arch:SSE2)
|
||||||
elseif (DEFINED MSVC80)
|
elseif (DEFINED MSVC80)
|
||||||
SET(COMPILER vc8)
|
SET(COMPILER vc8)
|
||||||
|
add_definitions(/arch:SSE2)
|
||||||
elseif (DEFINED MSVC90)
|
elseif (DEFINED MSVC90)
|
||||||
SET(COMPILER vc9)
|
SET(COMPILER vc9)
|
||||||
|
add_definitions(/arch:SSE2)
|
||||||
elseif (DEFINED MSVC10)
|
elseif (DEFINED MSVC10)
|
||||||
SET(COMPILER vc10)
|
SET(COMPILER vc10)
|
||||||
|
add_definitions(/arch:SSE2)
|
||||||
elseif (DEFINED MSVC11)
|
elseif (DEFINED MSVC11)
|
||||||
SET(COMPILER vc11)
|
SET(COMPILER vc11)
|
||||||
else()
|
else()
|
||||||
@ -77,9 +81,6 @@ IF(WIN32)
|
|||||||
ENDIF()
|
ENDIF()
|
||||||
ENDIF()
|
ENDIF()
|
||||||
|
|
||||||
# sse2
|
|
||||||
add_definitions(/arch:SSE2)
|
|
||||||
|
|
||||||
# warning level 4
|
# warning level 4
|
||||||
IF(MSVC)
|
IF(MSVC)
|
||||||
if(CMAKE_CXX_FLAGS MATCHES "/W[0-4]")
|
if(CMAKE_CXX_FLAGS MATCHES "/W[0-4]")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user