On 17. May, 2010, at 4:25 , SONGFY wrote: > The target_link_libraries has any three tag to distinguish different build > type:debug|optimized|general. > But what I need is to specify different library in different build type, > for example I have three custom build type: debug, release, shipping. And I > want these configurations link to different version of library for example > A_d.lib, A_r,lib and A_s.lib. > How can I do this? > Thank you.
Create an IMPORTED target, especially note the target properties IMPORTED_CONFIGURATIONS, IMPORTED_LOCATION_<CONFIG> and IMPORTED_IMPLIB_<CONFIG>. If the configuration names don't match, there's MAP_IMPORTED_CONFIG_<CONFIG>. Michael _______________________________________________ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://www.cmake.org/mailman/listinfo/cmake
