diff --git a/Lab/demo/Lab/Plugins/IO/CMakeLists.txt b/Lab/demo/Lab/Plugins/IO/CMakeLists.txt index 2b1b56be430..030eeac8322 100644 --- a/Lab/demo/Lab/Plugins/IO/CMakeLists.txt +++ b/Lab/demo/Lab/Plugins/IO/CMakeLists.txt @@ -45,10 +45,10 @@ target_link_libraries(lcc_io_plugin PUBLIC scene_lcc_item) find_package(OpenMesh) if(OpenMesh_FOUND) - include(UseOpenMesh) + include(CGAL_OpenMesh_support) cgal_lab_plugin(om_plugin OM_io_plugin KEYWORDS Viewer PMP) target_link_libraries(om_plugin PUBLIC scene_surface_mesh_item scene_polygon_soup_item scene_selection_item) - target_link_libraries(om_plugin PRIVATE ${OPENMESH_LIBRARIES}) + target_link_libraries(om_plugin PRIVATE CGAL::OpenMesh_support) else() message(STATUS "NOTICE: the OM IO plugin needs OpenMesh libraries and will not be compiled.") endif()