4
4
mirror of https://github.com/H-uru/korman.git synced 2025-07-14 02:27:36 -04:00

Fix Blender 2.79b+VS2013 build issues.

This commit is contained in:
2021-08-15 03:32:28 -04:00
parent b100652d58
commit 9cd8eecf61
3 changed files with 21 additions and 5 deletions

View File

@ -15,9 +15,14 @@
get_filename_component(_linker_dir "${CMAKE_LINKER}" DIRECTORY)
# In Visual Studio 2013, the dumpbin.exe in the linker directory is missing an important DLL.
# But, it's present in the parent directory, so prefer that one.
get_filename_component(_msvc_bin_dir "${_linker_dir}/../" ABSOLUTE)
find_program(dumpbin_EXECUTABLE
NAMES dumpbin
PATHS ${_linker_dir}
PATHS "${_msvc_bin_dir}" "${_linker_dir}"
)
mark_as_advanced(dumpbin_EXECUTABLE)