Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Thu 13 Dec 2018, 07:24
All times are UTC - 4
 Forum index » Off-Topic Area » Programming
(Solved) How to set the prefix in cmake
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [3 Posts]  
Author Message
ITSMERSH


Joined: 02 May 2018
Posts: 581

PostPosted: Yesterday, at 15:53    Post subject:  (Solved) How to set the prefix in cmake  

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?

_________________
RSH

Last edited by ITSMERSH on Yesterday, at 17:57; edited 1 time in total
Back to top
View user's profile Send private message 
Keef


Joined: 20 Dec 2007
Posts: 926
Location: Staffordshire

PostPosted: Yesterday, at 16:37    Post subject:  

Try here:
https://stackoverflow.com/questions/6003374/what-is-cmake-equivalent-of-configure-prefix-dir-make-all-install

Seems to be what you need.
Back to top
View user's profile Send private message 
ITSMERSH


Joined: 02 May 2018
Posts: 581

PostPosted: Yesterday, at 17:57    Post subject:  

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.

_________________
RSH
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 1 [3 Posts]  
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Off-Topic Area » Programming
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0286s ][ Queries: 11 (0.0029s) ][ GZIP on ]