You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is possible to expand the content of the environment variables to use with options as -I or -L in --flag and so on?
Example:
--flag " -L$LIB -I$INCLUDE"
There's already a PR (see #671) on this, but maybe this will lead to fpm being able to release binary-only fpm packages, we need to be careful about it.
(In my opinion: )
For package managers, -Lpath maybe not strictly required.
For build systems, -Lpath is necessary.
Currently, if you are using gfortran, you can support -Lpath by setting the LIBRARY_PATH environment variable.
For -I$path
Currently fpm already partially supports -I for relative paths through include-dir in fpm.toml (see include-directory).
For -l$lib
Currently fpm already partially supports -l for relative paths through link in fpm.toml (see link-external-libraries).
It is not exactly what I say.
My comment is to have the possibility to expand the environment variables when you need to describe any path directory in the options.
Probably you are thinking that all your dependencies are located in correct places but sometimes you are using particular libraries in particular directories that highly depend on the user choice.
And my last question is how to use this possibility:
In windows, should I use %varname% while in linux/macos $varname?
Upsss!
I have tested using in a response file the possibility to use an environment variable and it works!
For example:
option --flag "-I %WINTER%\lib.i64"
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Is possible to expand the content of the environment variables to use with options as -I or -L in --flag and so on?
Example:
--flag " -L$LIB -I$INCLUDE"
Javier
All reactions