master cmake commands for mint mate

Discuss the future of Warzone 2100 with us.

master cmake commands for mint mate

Postby 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
User avatar
Berg
Regular
Regular
 
Posts: 1977
Joined: 02 Sep 2007, 23:25
Location: Australia

Re: master cmake commands for mint mate

Postby 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
pastdue
Code contributor
Code contributor
 
Posts: 93
Joined: 13 Aug 2017, 17:44


Return to Development