How can I use
tool like http://statifier.sourceforge.net/ statifier to make library static ?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You can always make a
custom_targetto work on yourlibraryorexecutableto do special stuff.If you want to change the linker-command in cmake the lowest level I’m aware of is to overwrite the
CMAKE_CXX_LINK_EXECUTABLE-variable (for C it isCMAKE_C_LINK_EXECUTABLE) to use your own linker. If you do that, pay attention to the special<>-fields in that variable. See here for all variables. The section below (Expansion Rules) shows the special ‘tags’ which can be used inside cmake’s Build-variables.