From cd1cdccd62674869d4c184ba2dc8c87748ffc718 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Loriot?= Date: Tue, 2 Nov 2021 11:01:38 +0100 Subject: [PATCH] change the scope of imported targets --- Installation/cmake/modules/CGALConfig_binary.cmake.in | 4 ++-- Installation/cmake/modules/CGALConfig_install.cmake.in | 4 ++-- Installation/lib/cmake/CGAL/CGALConfig.cmake | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/Installation/cmake/modules/CGALConfig_binary.cmake.in b/Installation/cmake/modules/CGALConfig_binary.cmake.in index 0cdc1277bd1..769d18ab80d 100644 --- a/Installation/cmake/modules/CGALConfig_binary.cmake.in +++ b/Installation/cmake/modules/CGALConfig_binary.cmake.in @@ -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) diff --git a/Installation/cmake/modules/CGALConfig_install.cmake.in b/Installation/cmake/modules/CGALConfig_install.cmake.in index 260b0c4eedc..ade24452f95 100644 --- a/Installation/cmake/modules/CGALConfig_install.cmake.in +++ b/Installation/cmake/modules/CGALConfig_install.cmake.in @@ -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) diff --git a/Installation/lib/cmake/CGAL/CGALConfig.cmake b/Installation/lib/cmake/CGAL/CGALConfig.cmake index de6b2af3220..160e3363489 100644 --- a/Installation/lib/cmake/CGAL/CGALConfig.cmake +++ b/Installation/lib/cmake/CGAL/CGALConfig.cmake @@ -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)