summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--cmake/msvc.cmake5
1 files changed, 4 insertions, 1 deletions
diff --git a/cmake/msvc.cmake b/cmake/msvc.cmake
index 0ad0ab23..c35f4239 100644
--- a/cmake/msvc.cmake
+++ b/cmake/msvc.cmake
@@ -67,7 +67,10 @@ add_link_options(-cgthreads:1)
set(_CFLAGS "-diagnostics:classic -Zc:preprocessor -wd4117 -Zi -Zf -Zo -bigobj -cgthreads1 -vd0 -MT")
set(_CXXFLAGS "${_CFLAGS} -Zc:throwingNew -Zc:lambda -Zc:inline")
-set(_CFLAGS_RELEASE "-O2 -Oit -Oy- -Ob3 -fp:fast -GS- -GF -GL -Gw -Gy -arch:SSE2")
+set(_CFLAGS_RELEASE "-O2 -Oit -Oy- -Ob3 -fp:fast -GS- -GF -GL -Gw -Gy")
+if(NOT opentrack-64bit)
+ set(_CFLAGS_RELEASE "${_CFLAGS_RELEASE} -arch:SSE2")
+endif()
set(_CFLAGS_DEBUG "-guard:cf -MTd -Gs0 -RTCs")
set(_CXXFLAGS_RELEASE "${_CFLAGS_RELEASE}")
set(_CXXFLAGS_DEBUG "${_CFLAGS_DEBUG}")