Update CMakeLists.txt

can build on OSX