-
Notifications
You must be signed in to change notification settings - Fork 55
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
Install examles on cmake install. #9
Comments
The idea behind this behaviour is the following:
another reason: What do you think? |
+1 for not building / installing examples. |
We are closing this for now. Should there be more reasons to build/install examples feel free to reopen. |
Right now default behaviour is to build examples, but not to install them. This is strange and just wastes CPU time. If you consider examples not useful for general public, disable them by default. But if user asks for the examples, they should be installed as well. In Gentoo we have special USE flag for this: USE=examples, so users may configure either globally or per-package if they want usage/config/educational/etc examples or not.
However there is a problem here: some examples need input data files (examples/input_data) and, as far as I can see from the code, example programs try to read them from $PWD, which is wrong. Some preconfigured location should be checked as well. |
Which "preconfigured location" would you suggest, so it stays platform independent? |
What do you think about following scenario:
As for reading input data we suggest to introduce a parameter |
sounds reasonable to me and consistent with other projects practice |
Done. |
Please then consider renaming them into something like asl-$examplename. Otherwise there will be random collisions with other packages. General names like "flow" and "compressor" will be definitely a pain.
Why not to set default to "share/ASL/examples/input_data" since files will be installed there anyway? |
Yes, I was wondering how it is done on Gentoo... will do.
|
Done |
Hi,
right now if ASL is configured with examples enabled (default behaviour) examples are built, but not installed during cmake install phase. CMakeLists.txt for examples contain no installation instructions, please fix this.
It should be the best to install binaries together with their source code, so that users will be able to learn how they work.
The text was updated successfully, but these errors were encountered: