[cmake] no obvious way to provide a --prefix argument

Bug #423557 reported by Bob Tanner
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Netrek Server
New
Low
Bob Tanner

Bug Description

b. there is no obvious way to provide a --prefix argument as with the autoconf method, ... this is critical,

Tags: cmake
Revision history for this message
Bob Tanner (tanner) wrote :

I'll need to double check, I believe this functionality is in there I just need to make public record of how to use cmake's version of --prefix.

Changed in netrek-server:
importance: Undecided → Low
assignee: nobody → Bob Tanner (tanner)
Bob Tanner (tanner)
Changed in netrek-server:
milestone: none → 2.16.1
Revision history for this message
Bob Tanner (tanner) wrote :

Here is what I found so far.

You can override what we call --prefix in autotools by doing the following.

$ cd Vanilla/build
$ cmake .. -DCMAKE_INSTALL_PREFIX:STRING=/tmp

Seems kind of ugly. There is a helper tool called ccmake, here's how you use it.

$ cd Vanilla/build
$ ccmake .

It's curses based. Screenshot attached.

Revision history for this message
Bob Tanner (tanner) wrote :

You can change the install prefix by adding -DCMAKE_INSTALL_PREFIX:PATH=/installation/path to the CMake command (default is /usr/local). Seems to work as well.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.