update cmake for no dynamic so

Signed-off-by: Weizhe Zhang <wzzhang@taubh1.campuscluster.illinois.edu>