do not define several times

This commit is contained in:
Sébastien Loriot 2021-11-01 11:16:40 +01:00
parent 08b1457649
commit 5f750d5bb6
1 changed files with 6 additions and 4 deletions

View File

@ -167,10 +167,12 @@ endforeach()
#
# Define a specific target for basic viewer
#
add_library(CGAL::CGAL_Basic_viewer INTERFACE IMPORTED)
set_target_properties(CGAL::CGAL_Basic_viewer PROPERTIES
INTERFACE_COMPILE_DEFINITIONS "CGAL_USE_BASIC_VIEWER;QT_NO_KEYWORDS"
INTERFACE_LINK_LIBRARIES CGAL::CGAL_Qt5)
if (NOT TARGET CGAL::CGAL_Basic_viewer)
add_library(CGAL::CGAL_Basic_viewer INTERFACE IMPORTED)
set_target_properties(CGAL::CGAL_Basic_viewer PROPERTIES
INTERFACE_COMPILE_DEFINITIONS "CGAL_USE_BASIC_VIEWER;QT_NO_KEYWORDS"
INTERFACE_LINK_LIBRARIES CGAL::CGAL_Qt5)
endif()
include(${CGAL_CONFIG_DIR}/CGALConfigVersion.cmake)