[cfe-dev] Cannot run clang regression tests with cmake
İsmail Dönmez
ismail at namtrac.org
Thu May 19 11:58:09 PDT 2011
Hi;
On Thu, May 19, 2011 at 8:55 PM, Óscar Fuentes <ofv at wanadoo.es> wrote:
> Douglas Gregor <dgregor at apple.com> writes:
>
> >>> I've wanted to ask earleir, but forgot about it:
> >>> Why we can't produce libclang.dll on Win and clang.so on Unixies?
> >>
> >> For the resason explained on the text you didn't quote. The user would
> >> need to be aware of the difference and do:
> >>
> >> if( MSVC )
> >> target_link_libraries(myproject libclang)
> >> else()
> >> target_link_libraries(myproject clang)
> >> endif()
> >>
> >> Of course this is not a reason that makes impossible to do what you
> >> suggest. I picked a trade-off. If the consensus is that using different
> >> names is the right thing, it's okay with me. However, I don't accept
> >> reasonings of the type: "since I only work on Linux I don't care about
> >> whatever problems Windows users may have." Please keep in mind that for
> >> MSVC users cmake is the only way of building LLVM/Clang.
> >
> > Isn't this why CMake has the OUTPUT_NAME target property?
>
> This is not a technical problem. We know how to implement any of the
> choices under consideration.
>
> The discussion is about favoring the users who use cmake for
> cross-platform development on Windows and Unix or the users who
> simultaneously use the cmake build and the traditional one.
If you say cmake is for Windows users only its OK, otherwise default should
be in compliant with most of the platforms.
Regards,
ismail
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20110519/b1bdb418/attachment.html>
More information about the cfe-dev
mailing list