mirror of https://github.com/CGAL/cgal
Fix when CGAL_Qt5 is not available
This commit is contained in:
parent
ac557caa4a
commit
13bd01d38c
|
|
@ -70,7 +70,9 @@ function(create_single_source_cgal_program firstfile )
|
||||||
|
|
||||||
target_link_libraries(${exe_name} PRIVATE CGAL::CGAL)
|
target_link_libraries(${exe_name} PRIVATE CGAL::CGAL)
|
||||||
foreach(comp ${CGAL_REQUESTED_COMPONENTS})
|
foreach(comp ${CGAL_REQUESTED_COMPONENTS})
|
||||||
target_link_libraries(${exe_name} PRIVATE CGAL::CGAL_${comp})
|
if(TARGET CGAL::CGAL_${comp})
|
||||||
|
target_link_libraries(${exe_name} PRIVATE CGAL::CGAL_${comp})
|
||||||
|
endif()
|
||||||
endforeach()
|
endforeach()
|
||||||
if(CGAL_3RD_PARTY_LIBRARIES)
|
if(CGAL_3RD_PARTY_LIBRARIES)
|
||||||
target_link_libraries(${exe_name} PRIVATE ${CGAL_3RD_PARTY_LIBRARIES})
|
target_link_libraries(${exe_name} PRIVATE ${CGAL_3RD_PARTY_LIBRARIES})
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue