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

Should docs be built under $INSTALL_PREFIX/share/doc instead of $INSTALL_PREFIX/doc? #50

Open
CristianCantoro opened this issue May 8, 2021 · 0 comments

Comments

@CristianCantoro
Copy link

Following the build instructions:

$ cd monicelli/
$ mkdir build/
$ cd build/
$ cmake .. -DCMAKE_INSTALL_PREFIX="$HOME/mcc"
$ make all install

creates the following files in $HOME/mcc:

~/mcc $ tree .                  
.
├── bin
│   └── mcc
└── doc
    └── monicelli
        ├── LICENSE.txt
        └── README.md

3 directories, 3 files

On *nix systems, docs are usually under: share/doc/<proj>/doc, i.e.:

  • /usr/local/share/doc
  • /usr/share/doc

so if building with -DCMAKE_INSTALL_PREFIX="/usr/local":

cmake .. -DCMAKE_INSTALL_PREFIX="/usr/local"

should install:

  • /usr/local/bin/mcc
  • /usr/local/share/doc/monicelli/LICENSE.txt
  • /usr/local/share/doc/monicelli/README.txt

instead it of installing:

  • /usr/local/bin/mcc
  • /usr/local/doc/monicelli/LICENSE.txt
  • /usr/local/doc/monicelli/README.txt
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

No branches or pull requests

1 participant