[Cmake] Empty library names

Wheeler, Fred (Research) wheeler at crd.ge.com
Fri Jun 21 13:55:49 EDT 2002


I think the latter reads better.  It implies that the system will work with or without MPEG libs.
The one-liner would make me think that the MPEG libraries are required and assumed to be present.

Regards,
Fred

> -----Original Message-----
> From: Amitha Perera [mailto:perera at cs.rpi.edu]
> Sent: Friday, June 21, 2002 1:32 PM
> To: cmake at public.kitware.com
> Subject: [Cmake] Empty library names
> 
> 
> I find that CMake uses empty library names when generating VS6 DSP
> files. That is,
>   LINK_LIBRARIES( ${MPEG_LIBRARIES} )
> results in a link line with ".lib" when MPEG_LIBRARIES is "".
> 
> The Unix generator skips such libraries. I assume this is a bug, not a
> feature. Is it possible to get this fixed in 1.4 beta (and therefore
> in 1.4)? With the bug present, I'd have to write
> 
>   IF(HAS_MPEG)
>     LINK_LIBRARIES( ${MPEG_LIBRARIES} )
>   ENDIF(HAS_MPEG)
> 
> which is not as convenient, especially when there are a number of such
> variables.
> 
> Thanks,
> Amitha.
> _______________________________________________
> Cmake mailing list
> Cmake at public.kitware.com
> http://public.kitware.com/mailman/listinfo/cmake
> 



More information about the CMake mailing list