> On 30 Dec 2014, at 8:54 pm, Peter Kelly <[email protected]> wrote:
> 
> I noticed with the recent changes to CMakeLists.txt on windows I get the 
> following compile errors:
> 
> Warning       1       warning LNK4042: object specified more than once; 
> extras ignored        
> Y:\formats\build\DocFormats\core\core.dir\Debug\DFBDT.obj       1       1     
>   DocFormats (DocFormats\DocFormats)
> Warning       2       warning LNK4042: object specified more than once; 
> extras ignored        
> Y:\formats\build\DocFormats\core\core.dir\Debug\DFTable.obj     1       1     
>   DocFormats (DocFormats\DocFormats)
> Warning       3       warning LNK4042: object specified more than once; 
> extras ignored        Y:\formats\build\DocFormats\core\core.dir\Debug\CSS.obj 
> 1       1       DocFormats (DocFormats\DocFormats)
> Warning       4       warning LNK4042: object specified more than once; 
> extras ignored        
> Y:\formats\build\DocFormats\core\core.dir\Debug\CSSLength.obj   1       1     
>   DocFormats (DocFormats\DocFormats)
> Warning       5       warning LNK4042: object specified more than once; 
> extras ignored        
> Y:\formats\build\DocFormats\core\core.dir\Debug\CSSParser.obj   1       1     
>   DocFormats (DocFormats\DocFormats)
> 
> Any idea what’s leading to this? As far as I can see the files are only 
> linked to once

Never mind; I just realised there was a duplicate $<TARGET_OBJECTS:core> in 
DocFormats/CMakeLists.txt.

—
Dr Peter M. Kelly
[email protected]

PGP key: http://www.kellypmk.net/pgp-key <http://www.kellypmk.net/pgp-key>
(fingerprint 5435 6718 59F0 DD1F BFA0 5E46 2523 BAA1 44AE 2966)

Reply via email to