mirror of https://github.com/CGAL/cgal
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:
parent
08a42cf35b
commit
ff9eaa41f0
|
|
@ -97,7 +97,9 @@ endforeach()
|
||||||
|
|
||||||
set(CGALConfig_all_targets_are_defined TRUE)
|
set(CGALConfig_all_targets_are_defined TRUE)
|
||||||
foreach(cgal_lib ${CGAL_LIBRARIES})
|
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)
|
set(CGALConfig_all_targets_are_defined FALSE)
|
||||||
endif()
|
endif()
|
||||||
endforeach()
|
endforeach()
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue