diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2022-01-25 23:49:51 +0100 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2022-01-25 23:55:09 +0100 |
commit | 120871627bbdb2d2e760fa2c3abad466e38e872e (patch) | |
tree | 45e2ec0d64e0bf9c45ed27b29693e4f2da556015 | |
parent | 00680bea72e4359c11950f1ea707d43c59c8631e (diff) |
cmake/msvc: allow setting opentrack-64bit via cmdline
-rw-r--r-- | cmake/msvc.cmake | 5 |
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}") |