update cmake for no dynamic so

Signed-off-by: Weizhe Zhang <wzzhang@taubh1.campuscluster.illinois.edu>
Merge pull request #1 from XuehuiWang/master

update cmake for no dynamic so