(options []string)
| 332 | } |
| 333 | |
| 334 | func (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 | |
| 353 | func (c cmake) formatBuildType() string { |
| 354 | switch c.BuildType { |
nothing calls this directly
no test coverage detected