Skip to content

Commit 53f12f9

Browse files
oana.stanoiGiuseppeCorbelliAV
authored andcommitted
Link with "msvcr[n]" available on the system, instead of a specific hardcoded dependency
1 parent 51f0700 commit 53f12f9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

BackwardConfig.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ if(WIN32)
210210
set(CMAKE_EXE_LINKER_FLAGS "-Wl,--pdb= ")
211211
add_compile_options(-gcodeview)
212212
else()
213-
set(MINGW_MSVCR_LIBRARY "msvcr90$<$<CONFIG:DEBUG>:d>" CACHE STRING "Mingw MSVC runtime import library")
213+
find_library(MINGW_MSVCR_LIBRARY ucrtbase msvcr140 msvcr120 msvcr110 msvcr100 msvcr90 REQUIRED DOC "Mingw MSVC runtime import library")
214214
list(APPEND _BACKWARD_LIBRARIES ${MINGW_MSVCR_LIBRARY})
215215
endif()
216216
endif()

0 commit comments

Comments
 (0)