Hello all,<br>I&#39;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&#39;ve done something like this.<br><br>===============================<br>
set (mytarget &quot;mylib&quot;)<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&#39;m using cmake -2.4.8 on windows XP and Using MSVC 8.0 solution file generator.<br><br>Thanks in advance,<br>Surya<br>