Not sure if you figured it out, but you have to set CMAKE_BUILD_TYPE to debug. Keep in mind that on Linux you only need debug libraries, if you actually want to debug the library, i.e. step into SFML with a debugger. Where as on Windows, it's required to use debug libraries when running your application in debug mode.