add fix for older cmake versions
Merge pull request #126 from joshuawarner32/older-cmake

add fix for older cmake versions