diff --git a/Installation/cmake/modules/UseCGAL.cmake b/Installation/cmake/modules/UseCGAL.cmake index 6a5b91852af..28562c9f51b 100644 --- a/Installation/cmake/modules/UseCGAL.cmake +++ b/Installation/cmake/modules/UseCGAL.cmake @@ -46,7 +46,11 @@ if(NOT USE_CGAL_FILE_INCLUDED) if ( NOT CGAL_LIBRARY ) cache_get(CGAL_LIBRARY) endif() - add_to_list( CGAL_LIBRARIES ${CGAL_LIBRARY} ) + if(TARGET CGAL) + add_to_list( CGAL_LIBRARIES CGAL ) + else() + add_to_list( CGAL_LIBRARIES ${CGAL_LIBRARY} ) + endif() #message (STATUS "LIB: ${CGAL_LIBRARY}") #message (STATUS "LIBS: ${CGAL_LIBRARIES}")