Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update CMakeLists.txt with bin install #611

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

VictorEijkhout
Copy link

The executable was not being installed to the bin directory.
I added a install line.

installing athena to bin directory.
@jmstone
Copy link
Collaborator

jmstone commented Nov 21, 2024

Victor: thanks for the contribution. I am a cmake newbie. Where is the bin directory located? Does cmake create it automatically? When I run cmake with this change on my laptop the executable still appears in build/src/

@VictorEijkhout
Copy link
Author

the bin directory goes in the CMAKE_INSTALL_PREFIX. you need to do

  1. cmake -D CMAKE_INSTALL_PREFIX=/home/you/installations/athena <other arguments> or whatever location
  2. make (that leaves everything in build)
  3. make install that puts the bin directory in the install prefix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants