From a99c3c88cdb685f1c2faed90e976590bc7bdde94 Mon Sep 17 00:00:00 2001 From: Eike Ziller Date: Fri, 6 Sep 2024 11:44:13 +0200 Subject: [PATCH] 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 --- src/libs/qtcreatorcdbext/CMakeLists.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/libs/qtcreatorcdbext/CMakeLists.txt b/src/libs/qtcreatorcdbext/CMakeLists.txt index b62bdf9b317..bca1753476f 100644 --- a/src/libs/qtcreatorcdbext/CMakeLists.txt +++ b/src/libs/qtcreatorcdbext/CMakeLists.txt @@ -172,8 +172,9 @@ if (_library_enabled) return() endif() + file(TO_NATIVE_PATH ${PythonDll} NativePythonDll) execute_process( - COMMAND ${dumpbin_executable} /exports ${PythonDll} + COMMAND ${dumpbin_executable} /exports ${NativePythonDll} OUTPUT_VARIABLE dumpbin_output RESULT_VARIABLE dumpbin_result)