Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8338519
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T04:36:50+00:00 2026-06-09T04:36:50+00:00

Some info sources say: You can change the installation directory (prefix) by setting the

  • 0

Some info sources say:

You can change the installation directory (prefix) by setting the
CMAKE_INSTALL_PREFIX environment variable

If i do in a file:

export CMAKE_INSTALL_PREFIX=$KDEDIR

and then source it, and check if CMAKE_INSTALL_PREFIX environment variable is set, when i do:

vic@wic:~/kde/build/kde-workspace$ cmake ../../src/kde-workspace/

and then:

vic@wic:~/kde/build/kde-workspace$ make install

it tries to install files to system directories.

If i specify CMAKE_INSTALL_PREFIX as an argument to cmake:

vic@wic:~/kde/build/kde-workspace$ cmake -DCMAKE_INSTALL_PREFIX=$KDEDIR ../../src/kde-workspace/

then make install works ok – installs files to $KDEDIR

Is the documentation wrong about the possibility to set environment variables with the same name, or am i doing something wrong?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-09T04:36:51+00:00Added an answer on June 9, 2026 at 4:36 am

    CMAKE_INSTALL_PREFIX has to be set as a CMake variable:

    cmake -DCMAKE_INSTALL_PREFIX:PATH=/path/to/installation/directory ..
    

    But CMake also supports using the DESTDIR environment variable:

    export DESTDIR=/path/to/installation/directory
    make install
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Can someone give me some info/background info on how I might go about writing
I read a text file to get some info from it and later on
I am trying to read some info from a text file by using windows
In my app I show some info and depending on the value I change
I read some info regarding getting .h files for undocumented API. Most of sources
you have some info on an item and you got a list of comment
Here is some info of the cardiograph app if you dont know it: http://www.spotlightofpeace.com/techarea/photos/cardiograph-application-to-measure-heartbeat-from-iphone-and-ipad-camera/
I am trying to load some info from the database asynchronously. I have a
I'm trying to pullout some info from an external site using jQuery and Adobe
I see an application have used Log.info = some info where are these logs

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.