Prepare Presets
In the CMakePresets.json file of the Hello
World Application you will find the necessary CMake settings that
activate TACO. The relevant variable for this is
CMAKE_PROJECT_TOP_LEVEL_INCLUDES.
Steps:
-
Check if the version numbers match the following code snippet.
-
Check if your compiler is on the list of presets.
|
If your compiler is not on the list, you can add it. But keep in mind that we cannot guarantee that it will work as expected since it was not part of any tests. |
JSON
{
"version": 3,
"cmakeMinimumRequired": {
"major": 3,
"minor": 25,
"patch": 0
},
"configurePresets": [
{ …
"binaryDir": "${sourceDir}/build/${presetName}",
"cacheVariables": { …
"CMAKE_PROJECT_TOP_LEVEL_INCLUDES": "${sourceDir}/BuildSystem/TACO/Module/TacoProvider.cmake"
"TACO_ROOT": "$env{AMSR_SRC_DIR}/BuildSystem/TACO",
"TACO_PROVIDER_JSON_FILE": "$env{AMSR_SRC_DIR}/Dependencies.json"
}
},
…
{
"name": "gcc11_linux_x86_64",
"inherits": [
"unix-makefiles",
"external-libs-linux-x86-64",
"toolchain-linker"
],
"description": "Build with GCC-11 for Linux x86-64"
},
…
]
}