scipopt / soplex

Sequential object-oriented simPlex
Other
59 stars 18 forks source link

Static option to Cmake #40

Open jacobsvante opened 4 months ago

jacobsvante commented 4 months ago

I'm working on building completely static versions of soplex and scip. But currently I have had to change the cmake file a bit.

Perhaps there should be an option for static/shared like there is for scip?

leoneifler commented 4 months ago

Can you possibly elaborate on what you wish to achieve with this? You set the shared C library to static and remove it from the install targets?

jacobsvante commented 4 months ago

Hi @leoneifler,

I'm using a musl-cross-make made GCC compiler that doesn't support dynamic loading. For this reason the soplex cmake build fails.

What I want to achieve is a fully static version of libscip.a to be specific. See this file for my progress: https://github.com/jacobsvante/scipoptsuite-deploy/blob/docker-building/Dockerfile.musl-cross

Update: I see now that I forgot to reply to you regarding the removal of install targets - this was not needed for make install to succeed with my static-only GCC. So now that's been reverted as you can see in the cmake file.