Fixed minor bug with unset variables in CMakeLists