File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -59,10 +59,15 @@ if (CMAKE_SOURCE_DIR STREQUAL CMAKE_CURRENT_SOURCE_DIR)
59
59
)
60
60
endif ()
61
61
62
+ set (linked_libraries FortranDecimal )
63
+
62
64
# function checks
63
65
find_package (Backtrace )
64
66
set (HAVE_BACKTRACE ${Backtrace_FOUND} )
65
67
set (BACKTRACE_HEADER ${Backtrace_HEADER} )
68
+ if (HAVE_BACKTRACE )
69
+ list (APPEND linked_libraries ${Backtrace_LIBRARY} )
70
+ endif ()
66
71
67
72
include (CheckCXXSymbolExists )
68
73
include (CheckCXXSourceCompiles )
@@ -271,15 +276,15 @@ if (NOT DEFINED MSVC)
271
276
add_flang_library (FortranRuntime
272
277
${sources}
273
278
LINK_LIBS
274
- FortranDecimal
279
+ ${linked_libraries}
275
280
276
281
INSTALL_WITH_TOOLCHAIN
277
282
)
278
283
else ()
279
284
add_flang_library (FortranRuntime
280
285
${sources}
281
286
LINK_LIBS
282
- FortranDecimal
287
+ ${linked_libraries}
283
288
)
284
289
set (CMAKE_MSVC_RUNTIME_LIBRARY MultiThreaded )
285
290
add_flang_library (FortranRuntime.static ${sources}
You can’t perform that action at this time.
0 commit comments