Description: <short summary of the patch>
 TODO: Put a short summary on the line above and replace this paragraph
 with a longer explanation of this change. Complete the meta-information
 with other relevant fields (see below for details). To make it easier, the
 information below has been extracted from the changelog. Adjust it or drop
 it.
 .
 rock-master-20.06-slam-envire (0.20200806-1~buster) unstable; urgency=low
 .
   * Package automatically built using 'apaka'
   * repository: github:/rock-slam/slam-envire.git
   * branch: refs/heads/master
   * commit: b5f3de5b45af2941fec72dd564fb4e07ef962a35
   * tag:
Author: Rock Packaging Daemon (based on apaka) <rock-dev@dfki.de>

---
The information above should follow the Patch Tagging Guidelines, please
checkout http://dep.debian.net/deps/dep3/ to learn about the format. Here
are templates for supplementary fields that you might want to add:

Origin: <vendor|upstream|other>, <url of original patch>
Bug: <url in upstream bugtracker>
Bug-Debian: https://bugs.debian.org/<bugnumber>
Bug-Ubuntu: https://launchpad.net/bugs/<bugnumber>
Forwarded: <no|not-needed|url proving that it has been forwarded>
Reviewed-By: <name and email of someone who approved the patch>
Last-Update: 2020-09-16

--- rock-master-20.06-slam-envire-0.20200806.orig/CMakeLists.txt
+++ rock-master-20.06-slam-envire-0.20200806/CMakeLists.txt
@@ -12,7 +12,7 @@ include_directories(${Boost_INCLUDE_DIRS
 
 rock_activate_cxx11()
 
-option( USE_CGAL "Switch on CGAL related functionality" OFF )
+option( USE_CGAL "Switch on CGAL related functionality" ON)
 include(${PROJECT_SOURCE_DIR}/cmake/UseCGAL.cmake)
 if (USE_CGAL)
     if (NOT CGAL_FOUND)
--- rock-master-20.06-slam-envire-0.20200806.orig/src/CMakeLists.txt
+++ rock-master-20.06-slam-envire-0.20200806/src/CMakeLists.txt
@@ -136,12 +136,12 @@ install(FILES tools/GraphViz.hpp
 if (USE_CGAL AND CGAL_FOUND)
     message(WARNING "Linking boost system libraries to envire, this may lead to conflicting boost versions!")
     target_link_libraries(envire 
-	    ${CGAL_LIBRARIES}
 	    ${Boost_FILESYSTEM_LIBRARY}
 	    ${Boost_THREAD_LIBRARY}
         ${Boost_SYSTEM_LIBRARY}
         ${Boost_THREAD_LIBRARY}
     )
+    target_link_libraries(envire CGAL CGAL_Core)
 else() 
     target_link_libraries(envire 
 	    ${Boost_LIBRARIES})
