[Cmake] Debug or Release
Bill Hoffman
bill.hoffman@kitware.com
Tue, 13 May 2003 11:50:43 -0400
Try this:
TARGET_LINK_LIBRARIES(mylib debug rxmd)
TARGET_LINK_LIBRARIES(mylib optimized rxmd)
Where mylib is your library or executable that you added
with an ADD_LIBRARY or ADD_EXECUTABLE.
At the time cmake is running there is no Debug or Release since
cmake generates both at the same time.
-Bill
At 11:01 AM 5/13/2003, Patrick Rochon wrote:
>Hi,
>
>I am building a .DLL.
>
>I am using cmake to generate VisualStudio7 project files.
>
>Is it possible to link with a .lib in Debug and a different .lib in Release
>?
>
>I think that is possible using something like this :
>
>IF(DEBUG)
> LINK_LIBRARIES(rxmd.lib)
>ELSE(DEBUG)
> LINK_LIBRARIES(rxmr.lib)
>ENDIF(DEBUG)
>
>But, I can't find the exact "IF" command.
>
>Thank you!
>
>Patrick Rochon
>Code Administrator
>Stelvio inc.
>
>
>_______________________________________________
>Cmake mailing list
>Cmake@public.kitware.com
>http://public.kitware.com/mailman/listinfo/cmake