Skip to content

Commit accbe14

Browse files
committed
cmake: fix baremetal build flow in vs-code
Change-Id: I8e0188fee55bb8fca6245b6807805cb597c04c0a
1 parent d89943f commit accbe14

2 files changed

Lines changed: 13 additions & 4 deletions

File tree

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ if(ACS_CREATE_WRAPPER_TARGETS)
224224
)
225225
endforeach()
226226

227-
add_custom_target(acs_all
227+
add_custom_target(acs_all ALL
228228
DEPENDS ${ACS_LIST}
229229
)
230230

CMakePresets.json

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@
2020
"binaryDir": "${sourceDir}/build/${presetName}_build",
2121
"inherits": ["baremetal"],
2222
"cacheVariables": {
23-
"ACS": "bsa"
23+
"ACS": "bsa",
24+
"CMAKE_EXPORT_COMPILE_COMMANDS": true
2425
}
2526
},
2627
{
@@ -29,7 +30,8 @@
2930
"binaryDir": "${sourceDir}/build/${presetName}_build",
3031
"inherits": ["baremetal"],
3132
"cacheVariables": {
32-
"ACS": "sbsa"
33+
"ACS": "sbsa",
34+
"CMAKE_EXPORT_COMPILE_COMMANDS": true
3335
}
3436
},
3537
{
@@ -38,7 +40,8 @@
3840
"binaryDir": "${sourceDir}/build/${presetName}_build",
3941
"inherits": ["baremetal"],
4042
"cacheVariables": {
41-
"ACS": "pc_bsa"
43+
"ACS": "pc_bsa",
44+
"CMAKE_EXPORT_COMPILE_COMMANDS": true
4245
}
4346
},
4447
{
@@ -66,6 +69,12 @@
6669
"name": "pc_bsa",
6770
"configurePreset": "pc_bsa",
6871
"jobs": 8
72+
},
73+
{
74+
"name": "acs_all",
75+
"displayName": "Build: all baremetal ACS",
76+
"configurePreset": "acs_all",
77+
"targets": ["acs_all"]
6978
}
7079
]
7180
}

0 commit comments

Comments
 (0)