Cmake workaround

fix issue #260 

1. dont feel like waiting for cmake to fix bug

2. i doubt they will fix it 

3. cmake 2.8.10 is proabbly deployed a bunch of places

4. I kind of like the new code better anyway