Added ${ROOT} variable in CMakelists.txt to fix if statment and allow compilation.