Fix CGAL_Qt5_FOUND and other

When an installed header-only version of CGAL is used, and when all
`demo/*` are configured at once, then only the first demo got
`CGAL_Qt5_FOUND` correctly set.
This commit is contained in:
Laurent Rineau 2019-10-11 11:01:24 +02:00
parent 08a42cf35b
commit ff9eaa41f0
1 changed files with 3 additions and 1 deletions

View File

@ -97,7 +97,9 @@ endforeach()
set(CGALConfig_all_targets_are_defined TRUE)
foreach(cgal_lib ${CGAL_LIBRARIES})
if(NOT TARGET CGAL::${cgal_lib})
if(TARGET CGAL::${cgal_lib})
set(${cgal_lib}_FOUND TRUE)
else()
set(CGALConfig_all_targets_are_defined FALSE)
endif()
endforeach()