master cmake commands for mint mate

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

master cmake commands for mint mate

Post by Berg »

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
Warzone 2100 Team Member
Warzone 2100 Team Member
Posts: 339
Joined: 13 Aug 2017, 17:44

Re: master cmake commands for mint mate

Post by pastdue »

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: 2204
Joined: 02 Sep 2007, 23:25
Location: Australia

Re: master cmake commands for mint mate

Post by Berg »

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