@@ -86,14 +86,16 @@ if ( GraphBLAS_FOUND )
86
86
# (did not have "/Include")
87
87
get_property ( _inc TARGET SuiteSparse::GraphBLAS PROPERTY
88
88
INTERFACE_INCLUDE_DIRECTORIES )
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 )
89
+ if ( IS_DIRECTORY ${_inc} /Include )
90
+ if ( "${_graphblas_aliased} " STREQUAL "" )
91
+ target_include_directories ( SuiteSparse::GraphBLAS INTERFACE
92
+ ${_inc} /Include )
93
+ else ( )
94
+ target_include_directories ( ${_graphblas_aliased} INTERFACE
95
+ ${_inc} /Include )
96
+ endif ( )
97
+ message ( STATUS "additional include: ${_inc} /Include" )
95
98
endif ( )
96
- message ( STATUS "additional include: ${_inc} /Include" )
97
99
endif ( )
98
100
if ( "${_graphblas_aliased} " STREQUAL "" )
99
101
add_library ( GraphBLAS::GraphBLAS ALIAS SuiteSparse::GraphBLAS )
@@ -112,14 +114,16 @@ if ( GraphBLAS_FOUND )
112
114
# (did not have "/Include")
113
115
get_property ( _inc TARGET SuiteSparse::GraphBLAS_static PROPERTY
114
116
INTERFACE_INCLUDE_DIRECTORIES )
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 )
117
+ if ( IS_DIRECTORY ${_inc} /Include )
118
+ if ( "${_graphblas_aliased} " STREQUAL "" )
119
+ target_include_directories ( SuiteSparse::GraphBLAS_static INTERFACE
120
+ ${_inc} /Include )
121
+ else ( )
122
+ target_include_directories ( ${_graphblas_aliased} INTERFACE
123
+ ${_inc} /Include )
124
+ endif ( )
125
+ message ( STATUS "additional include: ${_inc} /Include" )
121
126
endif ( )
122
- message ( STATUS "additional include: ${_inc} /Include" )
123
127
endif ( )
124
128
if ( "${_graphblas_aliased} " STREQUAL "" )
125
129
add_library ( GraphBLAS::GraphBLAS_static ALIAS SuiteSparse::GraphBLAS_static )
0 commit comments