Working on install options for cmake
working on cmake migration and fixing bug created by it