Fix when CGAL_Qt5 is not available

This commit is contained in:
Laurent Rineau 2019-10-15 09:16:26 +02:00
parent ac557caa4a
commit 13bd01d38c
1 changed files with 3 additions and 1 deletions

View File

@ -70,7 +70,9 @@ function(create_single_source_cgal_program firstfile )
target_link_libraries(${exe_name} PRIVATE CGAL::CGAL)
foreach(comp ${CGAL_REQUESTED_COMPONENTS})
if(TARGET CGAL::CGAL_${comp})
target_link_libraries(${exe_name} PRIVATE CGAL::CGAL_${comp})
endif()
endforeach()
if(CGAL_3RD_PARTY_LIBRARIES)
target_link_libraries(${exe_name} PRIVATE ${CGAL_3RD_PARTY_LIBRARIES})