CMakeLists.txt: change keyword 'NOT' from lower to upper case, otherwise it is not recognized by CMake on OSX