diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2017-04-29 16:04:13 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2017-04-29 16:04:13 +0200 |
commit | 17d8245bdfaf75cc156aaf382b54782068a0c0f7 (patch) | |
tree | 440404e96dbec42edb99e672c81bbd3832829951 /cmake/msvc.cmake | |
parent | 7d559d6d23982719b8003ebe6308b104def0d3fd (diff) |
cmake/msvc: don't force sse2 for all projects
In particular OpenCV now branches on extensions at runtime.
Diffstat (limited to 'cmake/msvc.cmake')
-rw-r--r-- | cmake/msvc.cmake | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/cmake/msvc.cmake b/cmake/msvc.cmake index 823bfffe..3a86aa28 100644 --- a/cmake/msvc.cmake +++ b/cmake/msvc.cmake @@ -12,7 +12,7 @@ SET(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY) SET(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY) # oldest CPU supported here is Northwood-based Pentium 4. -sh 20150811 -set(cc "/O2it /Ob2 /arch:SSE2 /fp:fast /GS- /GF /GL /Gw /Gy") +set(cc "/O2it /Ob2 /fp:fast /GS- /GF /GL /Gw /Gy") set(warns_ "") @@ -41,10 +41,10 @@ if(CMAKE_PROJECT_NAME STREQUAL "opentrack") foreach(i ${warns-noerr}) set(warns_ "${warns_} /w1${i}") endforeach() - set(cc "${cc} /GR-") + set(cc "${cc} /GR- /arch:SSE2") endif() -set(silly "${warns_} /MT /Zi /Gm") +set(silly "${warns_} /MT /Zi /Gm -source-charset:UTF-8") set(_CFLAGS "${silly}") set(_CXXFLAGS "${silly}") |