[Scons-users] Storing object files in different directory

Christopher Dimech dimech.christopher at gmail.com
Sun Oct 12 13:05:40 EDT 2014


Yes, it picks up the .mod file, however it is  not created
in /build/lib as defined in the VariantDir. Have also used
the compiler option -Ibuild/lib

However the change did not work. The file still being
created as ./endian.mod

On 12 October 2014 17:58, Gary Oberbrunner <garyo at oberbrunner.com> wrote:

> I'm not a Fortran expert, but I believe SCons can automatically find
> required modules by scanning the main Fortran code, and build them and
> link with them automatically.  Have you looked at
> http://www.scons.org/wiki/llarsen/FortranTutorial?
>
> As for spacing, you're right -- SCons files are python, and as such
> has the same whitespace considerations as any other python source
> file.
>
> On Sun, Oct 12, 2014 at 12:35 PM, Christopher Dimech
> <dimech.christopher at gmail.com> wrote:
> > There is one thing remaining on this, the .mod file is being created
> > at the location of the SConstruct file, i.e. in vik/endian.mod. I want
> > to have it created in vik/build/lib. Any way to do this this with .mod
> > files. The .mod files is what differs when using fortran, as modules
> > create both a .o file as well as a .mod file.
>
>
> --
> Gary
> _______________________________________________
> Scons-users mailing list
> Scons-users at scons.org
> https://pairlist4.pair.net/mailman/listinfo/scons-users
>



-- 
Christopher Dimech
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://pairlist4.pair.net/pipermail/scons-users/attachments/20141012/a4ec509d/attachment.html>


More information about the Scons-users mailing list