Fixing Missing CMake code that was causing compile errors