cmake: fix potential install problem