2017-04-04 67 views
0

我在windows上使用cmake-GUI,爲codelite生成一個簡單的「hello world」項目(https://github.com/jameskbride/cmake-hello-world)。我想用cygwin的編譯器,但是當我運行構建命令,我得到了以下錯誤:爲什麼我的代碼庫執行'make -j 0'

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終端中,該項目起作用。

回答

0

你的項目是由CMake產生的 - 這意味着,該項目被設置爲custom項目,所以要執行的命令(在你的情況make -j0)被設置在Project Settings->Customize->Custom build頁。

在該頁面中你有幾個條目和不同的標題(BuildClean等) 雙擊每個條目所以它會在編輯模式下打開並刪除CodeLite - CMake發電機

-j0選項

這看起來像一個bug

相關問題