Cdbext: Fix build when not passing drive letters to CMake

Pass native path to Python DLL to dumpbin, because otherwise if the path
doesn't contain a drive letter but starts with a / it gets confused with
a command line option.

Change-Id: I5ba58db0075c3463991aab973f377e7f30637400
Reviewed-by: David Schulz <david.schulz@qt.io>
This commit is contained in:
Eike Ziller
2024-09-06 11:44:13 +02:00
parent 1f8f8f3483
commit a99c3c88cd

View File

@@ -172,8 +172,9 @@ if (_library_enabled)
return() return()
endif() endif()
file(TO_NATIVE_PATH ${PythonDll} NativePythonDll)
execute_process( execute_process(
COMMAND ${dumpbin_executable} /exports ${PythonDll} COMMAND ${dumpbin_executable} /exports ${NativePythonDll}
OUTPUT_VARIABLE dumpbin_output OUTPUT_VARIABLE dumpbin_output
RESULT_VARIABLE dumpbin_result) RESULT_VARIABLE dumpbin_result)