Hello all,
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.

===============================
set (mytarget "mylib")
Add_Library (${mytarget} ${mysrcs})

Set_Target_Properties (${mytarget} PROPERTIES DEBUG_POSTFIX d)

INSTALL (
TARGETS ${mytarget}
RUNTIME DESTINATION bin_debug
LIBRARY DESTINATION lib_debug
CONFIGURATIONS Debug
)

INSTALL (
TARGETS ${mytarget}
RUNTIME DESTINATION bin
LIBRARY DESTINATION lib
CONFIGURATIONS Release
)
==================================

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.

That means the ${CMAKE_INSTALL_DIR}/bin contains mylibd.dll and mylib.dll
and same is the case for ${CMAKE_INSTALL_DIR}/bin_debug.


What i want ideally is the mylibd.dll should go to bin_debug directory and
mylib.dll should go to bin directory.


I'm using cmake -2.4.8 on windows XP and Using MSVC 8.0 solution file
generator.

Thanks in advance,
Surya
_______________________________________________
CMake mailing list
[email protected]
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to