12-27-2013, 08:58 AM
What adventatges has cmake over make? with make all was easier
Random Chitchat 2012-2016
|
12-27-2013, 08:58 AM
What adventatges has cmake over make? with make all was easier
12-27-2013, 05:22 PM
cmake is multi-platform, it can generate makefiles for unix, visual studio project for windows, xcode project for mac, and several other, too. That should be the main advantage.
Our main problem is that we are quite new to cmake and so it will take some time to get things right.
12-27-2013, 08:27 PM
I got MCS working on debug, but then, like tigerw, I cannot get release.
When I compile in release mode I get a debug build.
12-27-2013, 11:11 PM
Did you do a "make clean" before reconfiguring by cmake? Have a look at Bearbin's build server, it lists the commands it's using to build.
It might be easiest to keep two folders, one with the debug build, the other with release.
12-27-2013, 11:26 PM
Bearbin's builds are debug.
12-28-2013, 02:38 AM
On my vps, I am actually getting a debug build when I specifiy release as well.
12-28-2013, 05:43 AM
I'm at my parents' now for the weekend, so I don't have access to any of my linux machines, can't help you there. You'll have to survive this for a while.
Also, Cmake seems to generate files in-tree. Maybe out-of source cmake would help for seperate builds?
Hmm, this seems true. No release builds for me!
12-28-2013, 07:26 AM
I don't like out-of-source builds, I like my projects not to pollute the filesystem anywhere other than their folder. But perhaps cmake works differently and you need some special command to generate release builds? It generates VS projects okay, with both Release and Debug configurations. I'd expect that you'd need to issue a "make release" command in order to build the release version, and that it would put the object files and everything into a different folder. It does so for MSVC.
12-28-2013, 06:41 PM
Cmake builds the source into something like src/CMAKE/Bnlob/Blob.o compared to build/release/bnlob/blob.o
|
« Next Oldest | Next Newest »
|