Disable build of static libs


#1

Hi,

How do I disable the building of static libs in cmake. I can only find how I disable building shared libs.

Regards


#2

Because of build requirements we always build the static libraries.

Allen


#3

With make it is as easy as --enable-static=no. But I need to use cmake since I build for windows…


#4

That is inconvenient if I build with -DHDF5_ENABLE_THREADSAFE=ON. Because then I have static libraries which are “broken”, i.e. not threadsafe.


#5

Would an option to not install static libraries work for you?

Allen


#6

Yes it would be excellent if I could create the zip/msi without the static libraries.


#7

For your reference I created an enhancement issue, HDFFV-10500, for this option. Currently our issue site is only available internally.

Allen