cmake_add()

def cmake_add(name, version)

Add CMake to your sysroot.

This also recommends the txws.cmake extension for Visual Studio Code.

Example:

load("//@star/packages/star/cmake.star", "cmake_add")

cmake_add("cmake3", "v3.21.7")

Args

  • name - str The name of the rule.
  • version - str CMake version from github.com/Kitware/CMake