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

后端 未结 1 1616
栀梦
栀梦 2021-01-26 05:16

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         


        
相关标签:
1条回答
  • 2021-01-26 05:24

    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).

    0 讨论(0)
提交回复
热议问题