为什么我的 codelite 执行 'make -j 0'

Why my codelite execute 'make -j 0'

我在 windows 上使用 cmake-GUI,为 codelite 生成,以构建一个简单的 "hello world" 项目 (https://github.com/jameskbride/cmake-hello-world)。我正在尝试使用 cygwin 编译器,但是当我 运行 构建命令时,出现以下错误:

C:\WINDOWS\system32\cmd.exe /C C:/cygwin64/bin/make.exe -j 0
----------Building project:[ Debugging - Debug ]----------
make: the '-j' option requires a positive integer argument
Usage: make [options] [target] ...

为什么会这样?!?

我的 cygwin 文件夹在 PATH 中。在 cygwin 终端中,该项目有效。

您的项目是由 CMake 生成的 - 这意味着该项目设置为 custom 项目,因此要执行的命令(在您的情况下为 make -j0)设置在 Project Settings->Customize->Custom build页。

在该页面上,您有多个标题不同的条目(BuildClean 等) 双击每个条目,使其以编辑模式打开并删除 -j0 选项

这看起来像是 CodeLite - CMake 生成器

中的错误