the variable is `BUILD_SHARED_LIBS` not `CMAKE_BUILD_SHARED`