removed redundant  target_link_libraries(r3d ${PHYSFS_LIBRARY}) as it is causing the build to fail.