Code::Blocks: CMake generated Makefile says “Nothing to be done.”

て烟熏妆下的殇ゞ 提交于 2019-12-20 06:29:46

问题


I just installed Code::Blocks with MinGW on my Win7 64 Box and tried to compile a CMake generated project (namely openclonk).

-------------- Clean: all in clonk ---------------

Cleaned "clonk - all"

-------------- Build: all in clonk ---------------

Using makefile: Makefile
Execution of 'make.exe -s -f Makefile all' in 'C:\Users\Julius\Documents\Visual Studio 2010\Projects\OpenClonk' failed.
Nothing to be done.

If I run

C:/PROGRA~2/CODEBL~1/MinGW/bin/mingw32-make.exe -f "C:/Users/Julius/Documents/Visual Studio 2010/Projects/OpenClonk/Makefile" clonk

from cmd it starts to compile...

Obviously, I'd like to know how to fix compiling from C::B.


回答1:


Code::Blocks is executing this:

make.exe -s -f <makefile> all

and you are manually executing this:

mingw32-make.exe -f <makefile> clonk

The main difference here is most likely the make target. Re-configure Code::Blocks to make the clonk target instead of the default all. Or, add a target that looks like all: clonk to the top of your makefile (assuming there isn't already an all target defined).

If that doesn't solve your problem, you might also want to investigate whether calling make.exe instead of mingw32-make.exe is making a difference (you can reconfigure this in your project settings).



来源:https://stackoverflow.com/questions/4809980/codeblocks-cmake-generated-makefile-says-nothing-to-be-done

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!