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)
5959 )
6060endif ()
6161
62+ set (linked_libraries FortranDecimal)
63+
6264# function checks
6365find_package (Backtrace)
6466set (HAVE_BACKTRACE ${Backtrace_FOUND} )
6567set (BACKTRACE_HEADER ${Backtrace_HEADER} )
68+ if (HAVE_BACKTRACE)
69+ list (APPEND linked_libraries ${Backtrace_LIBRARY} )
70+ endif ()
6671
6772include (CheckCXXSymbolExists)
6873include (CheckCXXSourceCompiles)
@@ -271,15 +276,15 @@ if (NOT DEFINED MSVC)
271276 add_flang_library(FortranRuntime
272277 ${sources}
273278 LINK_LIBS
274- FortranDecimal
279+ ${linked_libraries}
275280
276281 INSTALL_WITH_TOOLCHAIN
277282 )
278283else ()
279284 add_flang_library(FortranRuntime
280285 ${sources}
281286 LINK_LIBS
282- FortranDecimal
287+ ${linked_libraries}
283288 )
284289 set (CMAKE_MSVC_RUNTIME_LIBRARY MultiThreaded)
285290 add_flang_library(FortranRuntime.static ${sources}
You can’t perform that action at this time.
0 commit comments