[CMake] target_link_libraries doubt

Brad King brad.king at kitware.com
Thu Jun 15 10:15:59 EDT 2006


Vikas Kumar wrote:
> I understand that it is currently not possible.
> But take the case where you as a software product developer, are given
> a proprietary .dll/.so file and you are creating a library that links
> with that file.
> If   "ld -o foo.so -static bar.so foo.o " , can be written in a
> makefile and made to work, why cannot cmake have such an option ?

Look at the value of the variables CMAKE_C_CREATE_SHARED_LIBRARY and 
CMAKE_CXX_CREATE_SHARED_LIBRARY.  You can set it yourself to change the 
rule.

-Brad


More information about the CMake mailing list