Description: Link with -latomic on mipsel.
Author: Joachim Reichel <reichel@debian.org>

Index: cgal/cmake/modules/CGAL_SetupCGALDependencies.cmake
===================================================================
--- cgal.orig/cmake/modules/CGAL_SetupCGALDependencies.cmake
+++ cgal/cmake/modules/CGAL_SetupCGALDependencies.cmake
@@ -171,5 +171,9 @@ function(CGAL_setup_CGAL_dependencies ta
       message( STATUS "Using gcc on alpha. Adding -mieee -mfp-rounding-mode=d" )
       target_compile_options(${target} INTERFACE "-mieee" "-mfp-rounding-mode=d" )
     endif()
+    if ( "${CMAKE_SYSTEM_PROCESSOR}" MATCHES "mips" )
+      message( STATUS "Using gcc on mips. Adding -latomic" )
+      target_link_options( ${target} INTERFACE "-Wl,--push-state,--no-as-needed,-latomic,--pop-state" )
+   endif()
   endif()
 endfunction()
