Use CGAL::CGAL instead of CGAL

This commit is contained in:
Laurent Rineau 2016-09-09 11:18:08 +02:00
parent 8f2fa4f637
commit f9835007e5
1 changed files with 3 additions and 1 deletions

View File

@ -45,7 +45,9 @@ if(NOT USE_CGAL_FILE_INCLUDED)
include_directories( "${CMAKE_CURRENT_BINARY_DIR}" )
if(TARGET CGAL)
if(TARGET CGAL::CGAL)
add_to_list( CGAL_LIBRARIES CGAL::CGAL )
elseif(TARGET CGAL)
add_to_list( CGAL_LIBRARIES CGAL )
else()
add_to_list( CGAL_LIBRARIES ${CGAL_LIBRARY} )