Cuberite Forum
Transition to cmake on Windows - Printable Version

+- Cuberite Forum (https://forum.cuberite.org)
+-- Forum: Cuberite (https://forum.cuberite.org/forum-4.html)
+--- Forum: Development (https://forum.cuberite.org/forum-13.html)
+--- Thread: Transition to cmake on Windows (/thread-1312.html)

Pages: 1 2 3 4 5


RE: Transition to cmake on Windows - xoft - 01-14-2014

I have moved the windows nightbuilds to CMake. It seems everything is working smoothly, so I'm inclined to remove both VC2008 and VC2013 folders, since they no longer contain anything useful.

I'm going to bed now; if I don't see any objections by tomorrow morning, I will make it official.


RE: Transition to cmake on Windows - bearbin - 01-14-2014

I think @tigerw will be very happy with this.


RE: Transition to cmake on Windows - NiLSPACE - 01-14-2014

I don't have any objections.


RE: Transition to cmake on Windows - ThuGie - 01-14-2014

Hey,

Just wondering
I do use vs2012, do i just install and run a cmake command and it generates the vs files or ?


RE: Transition to cmake on Windows - tigerw - 01-14-2014

Yep, works fine. :D

However, the program in Release doesn't seem to be compiled with the fastest optimisation settings:
Code:
Optimization: Maximize Speed (/O2)
Enable Intrinsic Functions: No
Favour size or speed: Neither
Enable fiber safe optimizations: No
Whole program optimization: No

And the executable is in MCServer/MCServer/Debug instead of just MCServer/MCServer.


RE: Transition to cmake on Windows - xoft - 01-14-2014

(01-14-2014, 07:30 AM)ThuGie Wrote: [...] do i just install and run a cmake command and it generates the vs files or ?

Yes, you need to install cmake, and then run "cmake ." in the MCS repo root. It should auto-detect which VS you have, if it doesn't, you will need to use the -G option to specify the version (use "cmake --help" for a list of possible values).


RE: Transition to cmake on Windows - xoft - 01-14-2014

Damn, the CMake version again compiles against the dynamic CRT runtime (msvcr90.dll et al.), I need to fix that first.

I knew there was something wrong with it, the executable was suddenly several hundred KiB smaller.


RE: Transition to cmake on Windows - xoft - 01-15-2014

Dynamic CRT fixed.
Link-Time Code Generation for Release builds fixed.
Basic compiling guide written.

I think we're ready to remove the VC2008 and VC2013 solution files, what do you think?


RE: Transition to cmake on Windows - NiLSPACE - 01-16-2014

I did one last check to see if it compiles and it does so I guess we can remove those folders.


RE: Transition to cmake on Windows - xoft - 01-16-2014

Tiger, are you ready?Big Grin