Disable build of static libs



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



Because of build requirements we always build the static libraries.



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


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


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



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


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