Update CMakeLists.txt

Remove the duplicated framework.
Merge pull request #1821 from mgaver/patch-4

Update CMakeLists.txt