
16 May
2007
16 May
'07
6:16 p.m.
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