[CMake] Where to change default link line on Cmake

Marcel Loose loose at astron.nl
Thu May 6 08:09:40 EDT 2010


Hi Rene,

-- 8< ---- 8< ---- 8< ---- 8< ---- 8< ---- 8< ---- 8< --

> On the other hand we always want to use or default to XLC or XLF on an
IBM
> Power machine and not gcc or gfrotran so I can see our users seeing
having
> to set CC, CXX etc every time as a bit of a pain.  Sure they can just
put
> that in their .bashrs or .cshrc files and forget about it but that is
not
> really what we want.

If you want to set CC, CXX, and FC for *all* users, you might consider
putting this in /etc/profile.local. Users can then still override this
setting in their own .bashrc file, but at least they get a "sensible
default".

Best regards,
Marcel Loose.




More information about the CMake mailing list