3232@PACKAGE_INIT@
3333
3434set (ICEBERG_BUILD_STATIC "@ICEBERG_BUILD_STATIC@" )
35- set (ICEBERG_VENDOR_DEPENDENCIES "@ICEBERG_VENDOR_DEPENDENCIES@" )
3635set (ICEBERG_SYSTEM_DEPENDENCIES "@ICEBERG_SYSTEM_DEPENDENCIES@" )
3736
3837include (CMakeFindDependencyMacro)
@@ -70,41 +69,6 @@ macro(iceberg_find_components components)
7069 endforeach ()
7170endmacro ()
7271
73- macro (iceberg_find_vendor_dependencies dependencies)
74- get_target_property (_iceberg_static_configurations
75- Iceberg::iceberg_core_static IMPORTED_CONFIGURATIONS )
76-
77- foreach (dependency ${dependencies} )
78- string (REPLACE "|" ";" _dependency_pair ${dependency} )
79- list (LENGTH _dependency_pair _dependency_pair_length)
80- if (NOT _dependency_pair_length EQUAL 2)
81- message (FATAL_ERROR "Invalid vendor dependency: ${dependency} " )
82- endif ()
83- list (GET _dependency_pair 0 _target_name)
84- list (GET _dependency_pair 1 _static_lib_name)
85-
86- add_library ("${_target_name} " STATIC IMPORTED )
87-
88- foreach (configuration ${_iceberg_static_configurations} )
89- string (TOUPPER "${configuration} " _configuration_upper_case)
90- get_target_property (
91- _iceberg_core_static_location
92- Iceberg::iceberg_core_static LOCATION_${_configuration_upper_case} )
93- get_filename_component (
94- iceberg_core_lib_dir
95- "${_iceberg_core_static_location} " DIRECTORY )
96- set_property (
97- TARGET "${_target_name} "
98- APPEND
99- PROPERTY IMPORTED_CONFIGURATIONS ${_configuration_upper_case} )
100- set_target_properties (
101- "${_target_name} "
102- PROPERTIES IMPORTED_LOCATION_${_configuration_upper_case}
103- "${iceberg_core_lib_dir} /${_static_lib_name} " )
104- endforeach ()
105- endforeach ()
106- endmacro ()
107-
10872include ("${CMAKE_CURRENT_LIST_DIR} /iceberg-targets.cmake" )
10973
11074# Find required components
@@ -113,9 +77,4 @@ iceberg_find_components("${Iceberg_FIND_COMPONENTS}")
11377# Find system dependencies
11478iceberg_find_dependencies("${ICEBERG_SYSTEM_DEPENDENCIES} " )
11579
116- # Find vendor dependencies
117- if (ICEBERG_BUILD_STATIC)
118- iceberg_find_vendor_dependencies("${ICEBERG_VENDOR_DEPENDENCIES} " )
119- endif ()
120-
12180check_required_components(Iceberg)
0 commit comments