<font size="2"><font face="tahoma,sans-serif">Hi;<br></font></font><br><div class="gmail_quote">On Thu, May 19, 2011 at 8:55 PM, Óscar Fuentes <span dir="ltr"><<a href="mailto:ofv@wanadoo.es">ofv@wanadoo.es</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div class="im">Douglas Gregor <<a href="mailto:dgregor@apple.com">dgregor@apple.com</a>> writes:<br>
<br>
>>> I've wanted to ask earleir, but forgot about it:<br>
>>> Why we can't produce libclang.dll on Win and clang.so on Unixies?<br>
>><br>
>> For the resason explained on the text you didn't quote. The user would<br>
>> need to be aware of the difference and do:<br>
>><br>
>> if( MSVC )<br>
>>  target_link_libraries(myproject libclang)<br>
>> else()<br>
>>  target_link_libraries(myproject clang)<br>
>> endif()<br>
>><br>
>> Of course this is not a reason that makes impossible to do what you<br>
>> suggest. I picked a trade-off. If the consensus is that using different<br>
>> names is the right thing, it's okay with me. However, I don't accept<br>
>> reasonings of the type: "since I only work on Linux I don't care about<br>
>> whatever problems Windows users may have." Please keep in mind that for<br>
>> MSVC users cmake is the only way of building LLVM/Clang.<br>
><br>
> Isn't this why CMake has the OUTPUT_NAME target property?<br>
<br>
</div>This is not a technical problem. We know how to implement any of the<br>
choices under consideration.<br>
<br>
The discussion is about favoring the users who use cmake for<br>
cross-platform development on Windows and Unix or the users who<br>
simultaneously use the cmake build and the traditional one.</blockquote><div><br></div><div>If you say cmake is for Windows users only its OK, otherwise default should be in compliant with most of the platforms.</div><div>

<br></div><div>Regards,</div><div>ismail</div><div> </div></div>