${CMAKE_DL_LIBS} is more OS-general (see: http://trac.osgeo.org/qgis/ticket/1939 )