[Cmake] Debug or Release

Bill Hoffman bill.hoffman at kitware.com
Tue May 13 11:50:43 EDT 2003


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 at public.kitware.com
>http://public.kitware.com/mailman/listinfo/cmake 






More information about the CMake mailing list