File tree Expand file tree Collapse file tree 1 file changed +12
-10
lines changed Expand file tree Collapse file tree 1 file changed +12
-10
lines changed Original file line number Diff line number Diff line change @@ -139,17 +139,19 @@ function (add_flangrt_library name)
139
139
endif ()
140
140
141
141
# Provide a default target if building both and which exists in either setting.
142
- if (BUILD_SHARED_LIBS )
143
- if (build_shared )
144
- add_library (${name} .default ALIAS ${name_shared} )
145
- else ()
146
- add_library (${name} .default ALIAS ${name_static} )
147
- endif ()
148
- else ()
149
- if (build_static )
150
- add_library (${name} .default ALIAS ${name_static} )
142
+ if (libtargets )
143
+ if (BUILD_SHARED_LIBS )
144
+ if (build_shared )
145
+ add_library (${name} .default ALIAS ${name_shared} )
146
+ else ()
147
+ add_library (${name} .default ALIAS ${name_static} )
148
+ endif ()
151
149
else ()
152
- add_library (${name} .default ALIAS ${name_shared} )
150
+ if (build_static )
151
+ add_library (${name} .default ALIAS ${name_static} )
152
+ else ()
153
+ add_library (${name} .default ALIAS ${name_shared} )
154
+ endif ()
153
155
endif ()
154
156
endif ()
155
157
You can’t perform that action at this time.
0 commit comments