(Solved) How to set the prefix in cmake

For discussions about programming, programming questions/advice, and projects that don't really have anything to do with Puppy.
Post Reply
Message
Author
ITSMERSH

(Solved) How to set the prefix in cmake

#1 Post by ITSMERSH »

Hi.

I'm compiling some programs.
The data of some of them are going to /usr/local/share.

But I want ot have them in /usr/share.

In make i can set a prefix: make --prefix/usr

I searched the cmake manual but couldn't find anything related to --prefix...

How to do this in cmake?
Last edited by ITSMERSH on Wed 12 Dec 2018, 21:57, edited 1 time in total.

User avatar
Keef
Posts: 987
Joined: Thu 20 Dec 2007, 22:12
Location: Staffordshire

#2 Post by Keef »

Try here:
https://stackoverflow.com/questions/600 ... ll-install

Seems to be what you need.

ITSMERSH

#3 Post by ITSMERSH »

Ok,

I found it in a readme file of another program:

-DCMAKE_INSTALL_PREFIX=[PREFIX]

or

-DCMAKE_INSTALL_PREFIX=/usr

Thanks for the link and reply, Keef.

Post Reply