MCPcopy Create free account
hub / github.com/celer-pkg/celer / Install

Method Install

buildsystems/build_cmake.go:334–351  ·  view source on GitHub ↗
(options []string)

Source from the content-addressed store, hash-verified

332}
333
334func (c cmake) Install(options []string) error {
335 // Assemble args.
336 var args []string
337 args = append(args, "--install", c.PortConfig.BuildDir)
338 args = append(args, options...)
339
340 // Execute install.
341 logPath := c.getLogPath("install")
342 title := fmt.Sprintf("[install %s@%s]", c.PortConfig.LibName, c.PortConfig.LibVersion)
343 executor := cmd.NewExecutor(title, "cmake", args...)
344 executor.SetWorkDir(c.PortConfig.BuildDir)
345 executor.SetLogPath(logPath)
346 if err := executor.Execute(); err != nil {
347 return err
348 }
349
350 return nil
351}
352
353func (c cmake) formatBuildType() string {
354 switch c.BuildType {

Callers

nothing calls this directly

Calls 6

NewExecutorFunction · 0.92
SprintfMethod · 0.80
SetWorkDirMethod · 0.80
SetLogPathMethod · 0.80
ExecuteMethod · 0.80
getLogPathMethod · 0.65

Tested by

no test coverage detected