@@ -80,41 +80,51 @@ if ( GraphBLAS_FOUND )
80
80
message ( STATUS "Found SuiteSparse::GraphBLAS" )
81
81
get_property ( _graphblas_aliased TARGET SuiteSparse::GraphBLAS
82
82
PROPERTY ALIASED_TARGET )
83
- if ( "${_graphblas_aliased} " STREQUAL "" )
84
- add_library ( GraphBLAS::GraphBLAS ALIAS SuiteSparse::GraphBLAS )
85
- else ( )
86
- add_library ( GraphBLAS::GraphBLAS ALIAS ${_graphblas_aliased} )
87
- endif ( )
88
83
if ( GRAPHBLAS_VERSION LESS "8.3.0" AND _lagraph_gb_common_tree )
89
84
# workaround for incorrect INTERFACE_INCLUDE_DIRECTORIES of
90
85
# SuiteSparse:GraphBLAS 8.2.x before installation
91
86
# (did not have "/Include")
92
- get_property ( _inc TARGET GraphBLAS ::GraphBLAS PROPERTY
87
+ get_property ( _inc TARGET SuiteSparse ::GraphBLAS PROPERTY
93
88
INTERFACE_INCLUDE_DIRECTORIES )
94
- target_include_directories ( GraphBLAS::GraphBLAS INTERFACE
95
- ${_inc} /Include )
89
+ if ( "${_graphblas_aliased} " STREQUAL "" )
90
+ target_include_directories ( SuiteSparse::GraphBLAS INTERFACE
91
+ ${_inc} /Include )
92
+ else ( )
93
+ target_include_directories ( ${_graphblas_aliased} INTERFACE
94
+ ${_inc} /Include )
95
+ endif ( )
96
96
message ( STATUS "additional include: ${_inc} /Include" )
97
97
endif ( )
98
+ if ( "${_graphblas_aliased} " STREQUAL "" )
99
+ add_library ( GraphBLAS::GraphBLAS ALIAS SuiteSparse::GraphBLAS )
100
+ else ( )
101
+ add_library ( GraphBLAS::GraphBLAS ALIAS ${_graphblas_aliased} )
102
+ endif ( )
98
103
endif ( )
99
104
if ( TARGET SuiteSparse::GraphBLAS_static )
100
105
message ( STATUS "Found SuiteSparse::GraphBLAS_static" )
101
106
# It's not possible to create an alias of an alias.
102
107
get_property ( _graphblas_aliased TARGET SuiteSparse::GraphBLAS_static
103
108
PROPERTY ALIASED_TARGET )
104
- if ( "${_graphblas_aliased} " STREQUAL "" )
105
- add_library ( GraphBLAS::GraphBLAS_static ALIAS SuiteSparse::GraphBLAS_static )
106
- else ( )
107
- add_library ( GraphBLAS::GraphBLAS_static ALIAS ${_graphblas_aliased} )
108
- endif ( )
109
109
if ( GRAPHBLAS_VERSION LESS "8.3.0" AND _lagraph_gb_common_tree )
110
110
# workaround for incorrect INTERFACE_INCLUDE_DIRECTORIES of
111
111
# SuiteSparse:GraphBLAS 8.2.x before installation
112
112
# (did not have "/Include")
113
- get_property ( _inc TARGET GraphBLAS ::GraphBLAS_static PROPERTY
113
+ get_property ( _inc TARGET SuiteSparse ::GraphBLAS_static PROPERTY
114
114
INTERFACE_INCLUDE_DIRECTORIES )
115
- target_include_directories ( GraphBLAS::GraphBLAS_static INTERFACE
116
- ${_inc} /Include )
117
- message ( STATUS "additional include: ${_inc} /Include" )
115
+ if ( "${_graphblas_aliased} " STREQUAL "" )
116
+ target_include_directories ( SuiteSparse::GraphBLAS_static INTERFACE
117
+ ${_inc} /Include )
118
+ else ( )
119
+ target_include_directories ( ${_graphblas_aliased} INTERFACE
120
+ ${_inc} /Include )
121
+ endif ( )
122
+ message ( STATUS "additional include: ${_inc} /Include" )
123
+ endif ( )
124
+ if ( "${_graphblas_aliased} " STREQUAL "" )
125
+ add_library ( GraphBLAS::GraphBLAS_static ALIAS SuiteSparse::GraphBLAS_static )
126
+ else ( )
127
+ add_library ( GraphBLAS::GraphBLAS_static ALIAS ${_graphblas_aliased} )
118
128
endif ( )
119
129
endif ( )
120
130
return ( )
0 commit comments