[CMake] CMAKE_DEBUG_POSTFIX
Michael Wild
themiwi at gmail.com
Wed Jul 7 09:49:21 EDT 2010
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
More information about the CMake
mailing list