<br><br>
<div class="gmail_quote">On Tue, Apr 15, 2008 at 7:07 PM, Surya Kiran Gullapalli <<a href="mailto:suryakiran.gullapalli@gmail.com">suryakiran.gullapalli@gmail.com</a>> wrote:<br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">Hello all,<br>I'm building a library in debug and in release modes. I want the built library to go at different locations for each configuration. So I've done something like this.<br>
<br>===============================<br>set (mytarget "mylib")<br>Add_Library (${mytarget} ${mysrcs})<br><br>Set_Target_Properties (${mytarget} PROPERTIES DEBUG_POSTFIX d)<br><br>INSTALL (<br>TARGETS ${mytarget}<br>
RUNTIME DESTINATION bin_debug<br>LIBRARY DESTINATION lib_debug<br>CONFIGURATIONS Debug<br>)<br><br>INSTALL (<br>TARGETS ${mytarget}<br>RUNTIME DESTINATION bin<br>LIBRARY DESTINATION lib<br>CONFIGURATIONS Release<br>)<br>==================================<br>
<br>Both the debug and release libraries are built properly. But the problem is the library is getting installed to both the directories for both the configurations.<br><br>That means the ${CMAKE_INSTALL_DIR}/bin contains mylibd.dll and mylib.dll and same is the case for ${CMAKE_INSTALL_DIR}/bin_debug.<br>
<br><br>What i want ideally is the mylibd.dll should go to bin_debug directory and mylib.dll should go to bin directory.<br><br><br>I'm using cmake -2.4.8 on windows XP and Using MSVC 8.0 solution file generator.<br><br>
Thanks in advance,<br><font color="#888888">Surya<br></font></blockquote></div>
<div><br>As far as i understand, if you specify configurations in INSTALL command, that particular command will be exectuted in that particular configuration only. </div>
<div> </div>
<div>Then why is that release configuration command is getting executed in debug configuration and vice versa ?</div>
<div> </div>
<div>Surya</div>