[CMake] Add library at compiling time
Michael Wild
themiwi at gmail.com
Tue Apr 12 11:15:41 EDT 2011
On 04/12/2011 04:52 PM, pellegrini wrote:
> Hello everybody,
>
> I am using CMake 2.8 on a Fortran 90 project using ifort compiler.
>
> I would like to specify the path for Winteracter graphical library not
> only when linking but also when compiling.
> By the way the library is not in a standard location.
>
> I tried to use target_link_libraries function but obviously as indicated
> by its name, it may do the job when linking but certainly not when
> compiling.
>
> Any idea ?
>
> thans in advance
>
> Eric
>
>
Sorry, but that doesn't make any sense at all. Why would you want to do
that? Libraries only come into play during linking.
Michael
More information about the CMake
mailing list