Title: Problem with CMAKE_SHARED_LIBRARY_SUFFIX on windows

Hi

I have come across a problem when using the cmake version 2.5-20060419 with the Visual Studio 7 .NET 2003 generator.

When building an C++ Excel add-in ie with CMAKE_SHARED_LIBRARY_SUFFIX set to ".xll" and linking to standard dll's, the optimized libs set in TARGET_LINK_LIBRARIES end up with the format MyLib.dll.lib instead of MyLib.lib

The debug libs are set correctly to MyLib-D.lib

---
As a bit of extra info - hardwiring the linked library to the lib suffix - ie changing
TARGET_LINK_LIBRARIES(TestLibA
        optimized TestLib debug TestLib-D )

to

TARGET_LINK_LIBRARIES(TestLibA
        optimized TestLib.lib debug TestLib-D.lib)

fixes the problem, but then of course dependency information is lost.

Looking at the code, a fix looks non-trivial but if you have any pointers, would be apreciated.

Regards
Ian




Visit our website at http://www.ubs.com

This message contains confidential information and is intended only 
for the individual named.  If you are not the named addressee you 
should not disseminate, distribute or copy this e-mail.  Please 
notify the sender immediately by e-mail if you have received this 
e-mail by mistake and delete this e-mail from your system.

E-mail transmission cannot be guaranteed to be secure or error-free 
as information could be intercepted, corrupted, lost, destroyed, 
arrive late or incomplete, or contain viruses.  The sender therefore 
does not accept liability for any errors or omissions in the contents 
of this message which arise as a result of e-mail transmission.  If 
verification is required please request a hard-copy version.  This 
message is provided for informational purposes and should not be 
construed as a solicitation or offer to buy or sell any securities or 
related financial instruments.
_______________________________________________
CMake mailing list
[email protected]
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to