Normally we use target_link_libraries to link against certain libraries. For
example:

target_link_libraries ( mytarget A B C )

Well when I am working on creating regressions tests for my library, called
mytarget, I would use the same CMake command to link against the
boost unit test framework library. What I curious to know is it possible to
set properties for a specific library, e.g. B in this scenario, to say that
the build should always link against a static library even if the shared
library is present?

So in this case A and C would be linked as shared but B would be linked as
static.

Stephen
_______________________________________________
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

Reply via email to