[gmx-developers] Linking to extra libraries

Szilárd Páll szilard.pall at cbr.su.se
Wed Jul 10 09:37:42 CEST 2013


On Wed, Jul 10, 2013 at 8:02 AM, Carsten Kutzner <ckutzne at gwdg.de> wrote:
> Hi,
>
> for performance measurements I want to link 4.6 mdrun to an extra library
> and need to specify something like -L/opt/ibmhpc/ppedev.hpct/lib64 -lmpitrace
> at link time. Which cmake variable is the right one for that? Is this the
> right way to do it:
>
> -DCMAKE_EXE_LINKER_FLAGS="-L/opt/ibmhpc/ppedev.hpct/lib64 -lmpitrace"

That is the way I have linked before to performance analysis
libraries. Note that if the build system puts something in
CMAKE_EXE_LINKER_FLAGS (which is typically not the case), with the
above command you override this content.

Cheers,
--
Szilárd

>
> Thanks,
>   Carsten
>
>
> --
> gmx-developers mailing list
> gmx-developers at gromacs.org
> http://lists.gromacs.org/mailman/listinfo/gmx-developers
> Please don't post (un)subscribe requests to the list. Use the
> www interface or send it to gmx-developers-request at gromacs.org.



More information about the gromacs.org_gmx-developers mailing list