Using -DBUILD_SHARED_LIBS=ON does not take effect; it still compiles to a static library.
Using -DBUILD_SHARED_LIBS=ON does not take effect; it still compiles to a static library.