mirror of https://github.com/CGAL/cgal
Consider CGAL as an imported target
This commit is contained in:
parent
6cff0987ad
commit
a0bfaee9eb
|
|
@ -116,7 +116,11 @@ include(CGAL_setup_target_dependencies)
|
|||
foreach(cgal_lib ${CGAL_LIBRARIES})
|
||||
set(WITH_${cgal_lib} TRUE)
|
||||
if(${cgal_lib}_FOUND AND NOT TARGET ${cgal_lib})
|
||||
add_library(${cgal_lib} INTERFACE)
|
||||
if(CGAL_BUILDING_LIBS)
|
||||
add_library(${cgal_lib} INTERFACE)
|
||||
else()
|
||||
add_library(${cgal_lib} INTERFACE IMPORTED GLOBAL)
|
||||
endif()
|
||||
if(NOT TARGET CGAL::${cgal_lib})
|
||||
add_library(CGAL::${cgal_lib} ALIAS ${cgal_lib})
|
||||
endif()
|
||||
|
|
|
|||
Loading…
Reference in New Issue