[Cmake] RE: Questions about debug and release modes

Parag Chandra pchandra at radonc.unc.edu
Tue Feb 25 11:47:28 EST 2003


Hey Mark,

I think I can answer this for Windows builds at least. Look at the project settings for any CMake-generated .dsp file. If you go to the Link tab and select Input from the drop-down list, you'll notice that every library path you added to your CMakeLists file will appear on this dialog with the Visual Studio variable ${INTDIR} appended to it. Following that will be the library path that you specified verbatim. INTDIR is a special variable that Visual Studio will replace with the name of the target you've selected: 'Debug', 'RelWithDebInfo', etc. The order the paths are listed ensures that VS will look for your library in the target-specific directory first before looking at the 'generic' directory. This behavior can be overridden by passing additional parameters to the CMake TARGET_LINK_LIBRARIES command; see the manual for details.

Hope this helps.

-Parag Chandra
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/cmake/attachments/20030225/37ce1366/attachment.html>


More information about the CMake mailing list