change the scope of imported targets

This commit is contained in:
Sébastien Loriot 2021-11-02 11:01:38 +01:00
parent c59405342a
commit cd1cdccd62
3 changed files with 6 additions and 6 deletions

View File

@ -200,7 +200,7 @@ endif()
set(CGAL_DATA_DIR "@CGAL_DATA_DIR@")
if(NOT TARGET CGAL::Data)
add_library(CGAL::Data INTERFACE IMPORTED)
add_library(CGAL::Data INTERFACE IMPORTED GLOBAL)
if ( NOT "${CGAL_DATA_DIR}" STREQUAL "" )
set_target_properties(CGAL::Data PROPERTIES
INTERFACE_COMPILE_DEFINITIONS "CGAL_DATA_DIR=\"${CGAL_DATA_DIR}\"")
@ -211,7 +211,7 @@ endif()
# Define a specific target for basic viewer
#
if (NOT TARGET CGAL::CGAL_Basic_viewer)
add_library(CGAL::CGAL_Basic_viewer INTERFACE IMPORTED)
add_library(CGAL::CGAL_Basic_viewer INTERFACE IMPORTED GLOBAL)
set_target_properties(CGAL::CGAL_Basic_viewer PROPERTIES
INTERFACE_COMPILE_DEFINITIONS "CGAL_USE_BASIC_VIEWER;QT_NO_KEYWORDS"
INTERFACE_LINK_LIBRARIES CGAL::CGAL_Qt5)

View File

@ -184,7 +184,7 @@ endif()
set(CGAL_DATA_DIR "@CGAL_DATA_DIR@")
if(NOT TARGET CGAL::Data)
add_library(CGAL::Data INTERFACE IMPORTED)
add_library(CGAL::Data INTERFACE IMPORTED GLOBAL)
if ( NOT "${CGAL_DATA_DIR}" STREQUAL "" )
set_target_properties(CGAL::Data PROPERTIES
INTERFACE_COMPILE_DEFINITIONS "CGAL_DATA_DIR=\"${CGAL_DATA_DIR}\"")
@ -195,7 +195,7 @@ endif()
# Define a specific target for basic viewer
#
if (NOT TARGET CGAL::CGAL_Basic_viewer)
add_library(CGAL::CGAL_Basic_viewer INTERFACE IMPORTED)
add_library(CGAL::CGAL_Basic_viewer INTERFACE IMPORTED GLOBAL)
set_target_properties(CGAL::CGAL_Basic_viewer PROPERTIES
INTERFACE_COMPILE_DEFINITIONS "CGAL_USE_BASIC_VIEWER;QT_NO_KEYWORDS"
INTERFACE_LINK_LIBRARIES CGAL::CGAL_Qt5)

View File

@ -91,7 +91,7 @@ if (NOT CGAL_DATA_DIR)
endif()
if(NOT TARGET CGAL::Data)
add_library(CGAL::Data INTERFACE IMPORTED)
add_library(CGAL::Data INTERFACE IMPORTED GLOBAL)
if ( NOT "${CGAL_DATA_DIR}" STREQUAL "" )
set_target_properties(CGAL::Data PROPERTIES
INTERFACE_COMPILE_DEFINITIONS "CGAL_DATA_DIR=\"${CGAL_DATA_DIR}\"")
@ -168,7 +168,7 @@ endforeach()
# Define a specific target for basic viewer
#
if (NOT TARGET CGAL::CGAL_Basic_viewer)
add_library(CGAL::CGAL_Basic_viewer INTERFACE IMPORTED)
add_library(CGAL::CGAL_Basic_viewer INTERFACE IMPORTED GLOBAL)
set_target_properties(CGAL::CGAL_Basic_viewer PROPERTIES
INTERFACE_COMPILE_DEFINITIONS "CGAL_USE_BASIC_VIEWER;QT_NO_KEYWORDS"
INTERFACE_LINK_LIBRARIES CGAL::CGAL_Qt5)