|
Boost : |
From: Bill Hoffman (bill.hoffman_at_[hidden])
Date: 2007-05-16 14:16:38
Richard Hadsell wrote:
> Michael Walter wrote:
>
>
>> I've stumbled on that "Duplicate name of actual target" error;
>> unfortunately the FAQ doesn't seem to solve my problem, since I'm
>> trying to compile two different files which happen to have the same
>> basename, i.e. something like this:
>>
>> lib foo : bar/test.cpp baz/test.cpp ;
>>
>> What's the proper way to handle this situation, except for manually
>> specifying the object file name?
>>
>>
>>
> Rename one of the files.
>
>
CMake handles this with no problem... :-)
add_library(foo bar/test.cpp baz/test.cpp)
-Bill
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk