The SDL library linking problem was due to an error in the CMakeLists.txt file. It has been corrected now.