master cmake commands for mint mate

Discuss the future of Warzone 2100 with us.
Post Reply
User avatar
Berg
Regular
Regular
Posts: 2025
Joined: 02 Sep 2007, 23:25
Location: Australia

master cmake commands for mint mate

Post by Berg » 26 Jun 2018, 03:57

Okay, so you probably need to git submodule init again
I'd suggest a fresh checkout of the latest master branch
And then `git submodule update --init --recursive`

cmake '-H.' -Bbuild -DCMAKE_BUILD_TYPE=RelWithDebInfo -DCMAKE_INSTALL_PREFIX:PATH=install -G"Ninja"
cmake --build build --target install

pastdue
Code contributor
Code contributor
Posts: 106
Joined: 13 Aug 2017, 17:44

Re: master cmake commands for mint mate

Post by pastdue » 27 Jun 2018, 19:53

Actually, because of how WZ currently handles establishing data search paths, you'll want to use an install path that is not inside the build folder (which your `-DCMAKE_INSTALL_PREFIX:PATH=install` above does).

Which would turn the commands into something like:

Code: Select all

cmake '-H.' -Bbuild -DCMAKE_BUILD_TYPE=RelWithDebInfo -DCMAKE_INSTALL_PREFIX:PATH=~/wz/install -G"Ninja"
cmake --build build --target install
That will build and install WZ to: ~/wz/install

User avatar
Berg
Regular
Regular
Posts: 2025
Joined: 02 Sep 2007, 23:25
Location: Australia

Re: master cmake commands for mint mate

Post by Berg » 29 Aug 2018, 00:46

So far the only issues coupled with cmake is that you need to remove the install and build folders to get a new built.

Post Reply