News:

The new Release 25.03 is out! You can download binaries for Windows and many major Linux distros here .

Main Menu

Can I define a set of compiler options for every compiler in a project?

Started by terryys, August 18, 2010, 05:51:30 AM

Previous topic - Next topic

terryys

When I switch the compiler from gfortran to g95, the compiler options are carried over (e.g. there is a "-fbacktrace" in g95's other options if I have enabled this in gfortran). Since the extra options are not recognized, the build fails and I have to add/remove the extra options whenever I switch the compiler. Is there a way to change the options automatically when a different compiler is chosen?

Jenna

The easiest way would be to use different targets for different compilers, another possibility is to use scripting (see our wiki for details, especially: script expansion).