Skip to content

Commit 734ad59

Browse files
committed
Fix presets
1 parent 8db9cbd commit 734ad59

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

CMakePresets.json

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -33,47 +33,47 @@
3333
{
3434
"name": "native-base",
3535
"hidden": true,
36-
"cacheVariables": { "TARGET_ARCH": "native" }
36+
"cacheVariables": { "CMAKE_CXX_FLAGS": "$CXXFLAGS -march=native" }
3737
},
3838
{
3939
"name": "sse2-base",
4040
"hidden": true,
41-
"cacheVariables": { "TARGET_ARCH": "x86-64 -mno-sse3" }
41+
"cacheVariables": { "CMAKE_CXX_FLAGS": "$CXXFLAGS -march=x86-64 -msse2 -mno-sse3" }
4242
},
4343
{
4444
"name": "sse3-base",
4545
"hidden": true,
46-
"cacheVariables": { "TARGET_ARCH": "core2" }
46+
"cacheVariables": { "CMAKE_CXX_FLAGS": "$CXXFLAGS -march=x86-64 -msse3 -mno-ssse3" }
4747
},
4848
{
4949
"name": "ssse3-base",
5050
"hidden": true,
51-
"cacheVariables": { "TARGET_ARCH": "core2 -mssse3" }
51+
"cacheVariables": { "CMAKE_CXX_FLAGS": "$CXXFLAGS -march=x86-64 -mssse3 -mno-sse4.1" }
5252
},
5353
{
5454
"name": "sse4.1-base",
5555
"hidden": true,
56-
"cacheVariables": { "TARGET_ARCH": "nehalem" }
56+
"cacheVariables": { "CMAKE_CXX_FLAGS": "$CXXFLAGS -march=x86-64 -msse4.1 -mno-sse4.2" }
5757
},
5858
{
5959
"name": "sse4.2-base",
6060
"hidden": true,
61-
"cacheVariables": { "TARGET_ARCH": "nehalem" }
61+
"cacheVariables": { "CMAKE_CXX_FLAGS": "$CXXFLAGS -march=x86-64 -msse4.2 -mno-avx" }
6262
},
6363
{
6464
"name": "avx-base",
6565
"hidden": true,
66-
"cacheVariables": { "TARGET_ARCH": "nehalem -msse4.2" }
66+
"cacheVariables": { "CMAKE_CXX_FLAGS": "$CXXFLAGS -march=x86-64 -mavx -mno-avx2" }
6767
},
6868
{
6969
"name": "avx2-base",
7070
"hidden": true,
71-
"cacheVariables": { "TARGET_ARCH": "haswell" }
71+
"cacheVariables": { "CMAKE_CXX_FLAGS": "$CXXFLAGS -march=x86-64 -mavx2 -mno-avx512f" }
7272
},
7373
{
7474
"name": "neon-base",
7575
"hidden": true,
76-
"cacheVariables": { "TARGET_ARCH": "armv8-a" }
76+
"cacheVariables": { "CMAKE_CXX_FLAGS": "$CXXFLAGS -march=armv8-a" }
7777
},
7878

7979
{

0 commit comments

Comments
 (0)