On 7. Jul, 2010, at 15:39 , Diablo 666 wrote:

> 
> Hi again,
> 
> I tried using the CMAKE_DEBUG_POSTFIX to add a D to all library names on 
> Windows only. On Linux, they should not have a closing D. To this point, 
> everything is fine.
> 
> But how can I link against these libraries? To keep things easy, I would like 
> to avoid the construct "debug FooD optimized Foo", because this would raise 
> the need of an additional IF(WIN32).
> 
> Best regards,
> Andreas
> 

You mean in the same project? Just use the target name, CMake will figure 
things out on its own.

Michael

_______________________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to