In the CMakePresets.json file of the Hello World Project you will find the necessary CMake settings that activate TACO. The relevant variable for this is CMAKE_PROJECT_TOP_LEVEL_INCLUDES.

Steps:

  1. Check if the version numbers match the following Code Snippet.
  2. Check if your compiler is on the list of presets.
notice

Note: 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}/CMake/Module/TacoProvider.cmake"
        "TACO_ROOT": "$env{AMSR_SRC_DIR}/CMake",
        "TACO_PROVIDER_JSON_FILE": "$env{AMSR_SRC_DIR}/Dependencies.json"
      }
    },
  …
  {
    "name": "gcc12_linux_x86_64",
    "inherits": [
      "unix-makefiles",
      "external-libs-linux-x86-64",
      "toolchain-linker"
    ],
    "description": "Build with GCC-12 for Linux x86-64"
  },
  …
  ]
}

 

Next step in the tutorial: Build Hello World Application Files